forked from boostorg/config
BOOST_NO_CXX17_STD_INVOKE: Update test case to check we have std::invoke_result.
MSVC has no std::invoke in C++14 mode. GCC has no std::invoke_result prior to 7.1.
This commit is contained in:
1 parent
d9d5ece1c8
commit
3764d61f25
3 files changed
+4
-6
No files matched your search
@@ -19,7 +19,7 @@ int foo( int i, int j) {
|
||||
|
||||
int test() {
|
||||
int i = 1, j = 2;
|
||||
std::invoke( foo, i, j);
|
||||
typename std::invoke_result<int(&)(int,int), int, int>::type t = std::invoke( foo, i, j);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user