Fix type_traits check

This commit is contained in:
Victor Zverovich 2014-09-29 11:03:18 -07:00
parent b79d06a5da
commit d00f689c40

View File

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