Skip to content

Instantly share code, notes, and snippets.

@tomilov
Created November 26, 2015 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomilov/c9e743a47b8a79ab8ee4 to your computer and use it in GitHub Desktop.
Save tomilov/c9e743a47b8a79ab8ee4 to your computer and use it in GitHub Desktop.
struct S { ~S() noexcept(false) { ; } };
static_assert(noexcept(::new (nullptr) S()));
static_assert(!noexcept(S()));
struct T { T() noexcept(false) { ; } };
static_assert(!noexcept(::new (nullptr) T()));
static_assert(!noexcept(T()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment