Check if is_copy_assignable is working

is_copy_assignable is broken in MSVC.
This commit is contained in:
Victor Zverovich 2014-09-29 10:42:16 -07:00
parent 810f42c0c7
commit 2846a9eb38

View File

@ -38,7 +38,9 @@ endforeach ()
check_cxx_source_compiles("
#include <type_traits>
int main() { return std::is_copy_constructible<int>::value; }" HAVE_TYPE_TRAITS)
class C { void operator=(const C&); };
int main() { static_assert(std::is_copy_assignable<C>::value, ""); }"
HAVE_TYPE_TRAITS)
if (HAVE_TYPE_TRAITS)
add_definitions(-DFMT_USE_TYPE_TRAITS=1)
endif ()