Skip to content

Instantly share code, notes, and snippets.

@loliGothicK
Created April 12, 2018 18:20
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 loliGothicK/c8611b984c71e3d09ca13651c36fc06f to your computer and use it in GitHub Desktop.
Save loliGothicK/c8611b984c71e3d09ca13651c36fc06f to your computer and use it in GitHub Desktop.
// エラー、SFINAEの文脈でconstexprラムダが使われている
template < typename T,
bool b = []{
T t;t.func();
return true;
}()>
void f() {
T t;
t.func();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment