mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 03:17:53 +00:00
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("
|
||||
#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 ()
|
||||
|
Loading…
Reference in New Issue
Block a user