Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PreprocessorVsNamespace
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> #define bar 222; namespace aaa { struct bbb { int foo; int bar; }; const bbb myB; } int main() { using aaa::myB; std::cout << "Hello, world!\n"; std::cout << "aaa::myB::foo:"<< myB.foo << "\n"; std::cout << "aaa::myB::bar:"<< myB.bar << "\n"; }
run
|
edit
|
history
|
help
0
post_decrement_example
parameter pack workaround
vc++ bug?
dynamic_cast in assert Causing Error
Copy elision sample modern C++
hangman
Use std::is_base_of to subset STL container contents.
Attribute of qi parsers
#30.1
Thing