(c++11) Why can std::bind be used without the std namespace prefix?
Liu Hao
lh_mouse@126.com
Thu May 16 15:41:00 GMT 2019
在 2019/5/16 23:15, Michael Haubenwallner 写道:
> Hi,
>
> it turns out that the std::bind template (since C++11) can be used
> without the std:: namespace prefix ('ve tried 4.8.4, 8.3.0, 9.1.0).
>
> But why?
>
> That is, I fail to see how 'bind' can resolve to '::std::bind'
> in this example, where one would expect a compilation failure:
>
See <https://en.cppreference.com/w/cpp/language/adl>.
--
Best regards,
LH_Mouse
More information about the Gcc-help
mailing list