Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix check for std::apply (R__HAS_STD_APPLY)
std::apply is part of C++17 standard. The order of argument was
wrong. According to the documention it's function first followed
by the tuple.

Signed-off-by: David Abdurachmanov <[email protected]>
  • Loading branch information
davidlt committed May 26, 2017
commit b490f2ee9652969a0e43e836d70b6c78c89a8037
2 changes: 1 addition & 1 deletion cmake/modules/RootConfiguration.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ else()
endif()

CHECK_CXX_SOURCE_COMPILES("#include <tuple>
int main() { std::tuple<int> tup;std::apply(tup, [](int){}); return 0;}" found_stdapply)
int main() { std::apply([](int, int){}, std::make_tuple(1,2)); return 0;}" found_stdapply)
if(found_stdapply)
set(hasstdapply define)
else()
Expand Down