adding examples, fixing bugs

This commit is contained in:
badair
2016-04-01 19:35:40 -05:00
parent b481bded15
commit 5e7d426abd
22 changed files with 357 additions and 52 deletions

View File

@@ -66,8 +66,8 @@ static_assert(ct::can_invoke(multiply, 1, 2), ""); // <-- success
static_assert(!ct::can_invoke(multiply, 1, 2, 3), "");
//static_assert(!ct::can_invoke(multiply, bad, bad), "");
// The last, commented static_assert would fail compile, because
// the call cannot be SFINAE'd away. Error message in Clang:
// The last, commented static_assert above would fail compile,
// because the call cannot be SFINAE'd away. Error message in Clang:
// "invalid operands to binary expression ('Bad' and 'Bad')"
int main() {}