Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Optional conversions
struct Optional { explicit operator bool() { return true; } }; bool get_value() { Optional op; return op; } bool get_value_2() { Optional op; return !!op; } int main() { bool b = get_value(); bool b = get_value_2(); }
run
|
edit
|
history
|
help
0
Template arguments may contain calls to constexpr functions.
MPL 2-0
template specialization inheritance problem
simple in-memory b-tree
Test3
non-deduced context
Test size_t
ljblblljkl
ArrayList
What's the problem with this?