Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
MSVC noexcept - works
#include <type_traits> void throwable(){ throw int(4); } struct T{ T() noexcept (true) { throwable(); } T(T&& ) noexcept (true) {} T(const T& ) noexcept (true) {} T& operator = (T&&) noexcept(true) { return *this; } T& operator = (const T&) noexcept(true) { return *this; } ~T() noexcept(false) {} }; int main(){ T a; (void)a; }
run
|
edit
|
history
|
help
0
Templatized Visitor Pattern Example
test
No UD
Integral constant
Is min defined?
make Derive final
amusing overload choice
Default constructor - none defined
cv5
asock