Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
the usual name hiding rules do apply with using directives
//clang 3.8.0 #include <iostream> namespace A { void f(int) { std::cout << "A::f(int)\n"; } } namespace B { using namespace A; void f() { std::cout << "B::f()\n"; } void g() { f(0); } // error; works if void f() { ... } is commented out above } int main() { B::f(0); // error; also works if void f() { ... } in B is commented out }
run
|
edit
|
history
|
help
0
std::set custom ordering with composition
illegal instruction (SIGILL)
Standard Template Library
for_each_argument
boost::geometry::distance performance overhead compared to a straightforward implementation
uniq ptr
cv5_class
Erase a std::unordered_map::local_iterator by key
Optional conversions
C++ Operator Overloading