mirror of
https://github.com/boostorg/callable_traits.git
synced 2026-02-13 00:12:11 +00:00
adding examples, fixing bugs
This commit is contained in:
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user