From 2846a9eb38f9fa6d089a4dca3a6847af7ea52ce2 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 29 Sep 2014 10:42:16 -0700 Subject: [PATCH] Check if is_copy_assignable is working is_copy_assignable is broken in MSVC. --- test/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b0dfa587..56f33e1d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -38,7 +38,9 @@ endforeach () check_cxx_source_compiles(" #include - int main() { return std::is_copy_constructible::value; }" HAVE_TYPE_TRAITS) + class C { void operator=(const C&); }; + int main() { static_assert(std::is_copy_assignable::value, ""); }" + HAVE_TYPE_TRAITS) if (HAVE_TYPE_TRAITS) add_definitions(-DFMT_USE_TYPE_TRAITS=1) endif ()