This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/48472] some flavors of std::bind are included in the global namespace when you include <functional> with -std=c++0x


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48472

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-04-05 21:22:03 UTC ---
No this is not in the global namespace but rather namelookup looks at std::bind
when one of the arguments are in std namespace.

namespace std
{
class A
{};
}

namespace std
{
  template<typename A>
  void g(void (*a)(A), A);
}

void h(std::A a)
{
  g(&h, a);
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]