mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +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("
|
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 ()
|
||||||
|
Reference in New Issue
Block a user