mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
Check if is_copy_assignable is working
is_copy_assignable is broken in MSVC.
This commit is contained in:
@ -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 ()
|
||||
|
Reference in New Issue
Block a user