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() { 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
VC++ error LNK2001 with combined use of non-type template parameters
Template function declaration to avoid usage of template in T::template f<int>()
RecursiveDivide
throwing Copyable versus throwing MoveOnly
Operators overloading
Project
post_decrement_example
assignment
atoi on hex
Initializing member array of structs