Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Linker error while taking the address of a constexpr variable
struct A { static constexpr int Max = 17; }; int main() { const int* aMax = &A::Max; // linker error: undefined reference to `A::Max' (void) aMax; }
run
|
edit
|
history
|
help
0
Result of not joining thread in main()
Rounding float to nearest 1000
std::reference_wrapper
user defined exception
How to test call member?
Unlike C (even C99/C11), C++ allows initializers in if-conditions, so this compiles.
simple in-memory b-tree
mine
Thread-safe Interval Average Calculator
Apple is not convertible to itself (clang 3.8.0)