Check if is_copy_assignable is working
is_copy_assignable is broken in MSVC.
This commit is contained in:
parent
810f42c0c7
commit
2846a9eb38
@ -38,7 +38,9 @@ endforeach ()
|
|||||||
|
|
||||||
check_cxx_source_compiles("
|
check_cxx_source_compiles("
|
||||||
#include <type_traits>
|
#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)
|
if (HAVE_TYPE_TRAITS)
|
||||||
add_definitions(-DFMT_USE_TYPE_TRAITS=1)
|
add_definitions(-DFMT_USE_TYPE_TRAITS=1)
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user