<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 16, 2013 at 2:20 PM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Mon, Dec 16, 2013 at 2:07 PM, Richard Trieu <<a href="mailto:rtrieu@google.com">rtrieu@google.com</a>> wrote:<br>

> Is there a more canonical way to detect that the function is std::move<br>
> instead of another move function?  This would fail to recognize<br>
> std::__1::move.<br>
<br>
</div>Sema::getStdNamespace() could be probably useful in this.  Should it<br>
be safe to assume that if the function is std::move if it is named<br>
'move', and it comes from any namespace under ::std?<br>
<span class=""><font color="#888888"><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</font></span></blockquote></div><br></div><div class="gmail_extra">I checked in r197445 which does a namespace walk to find if the highest namespace is "std".  This will accept both std::move and std::__1::move.<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">I didn't see a Sema object available to use getStdNamespace.</div></div>