Commit 8f5bf057 authored by Dominik Charousset's avatar Dominik Charousset

Fix build on MSVC

parent fe7fe943
...@@ -45,3 +45,7 @@ unusedFunction:libcaf_core/src/exit_reason.cpp ...@@ -45,3 +45,7 @@ unusedFunction:libcaf_core/src/exit_reason.cpp
unusedFunction:libcaf_core/src/shared_spinlock.cpp unusedFunction:libcaf_core/src/shared_spinlock.cpp
unusedFunction:libcaf_io/src/interfaces.cpp unusedFunction:libcaf_io/src/interfaces.cpp
unusedFunction:libcaf_io/src/max_msg_size.cpp unusedFunction:libcaf_io/src/max_msg_size.cpp
// making only some overloads of `abstract_uniform_type_info::eq`
// static fails on MSVC
functionStatic:bcaf_core/caf/abstract_uniform_type_info.hpp
...@@ -79,17 +79,17 @@ protected: ...@@ -79,17 +79,17 @@ protected:
private: private:
template <class C> template <class C>
static typename std::enable_if<std::is_empty<C>::value, bool>::type typename std::enable_if<std::is_empty<C>::value, bool>::type
eq(const C&, const C&) { eq(const C&, const C&) const {
return true; return true;
} }
template <class C> template <class C>
static typename std::enable_if< typename std::enable_if<
! std::is_empty<C>::value && detail::is_comparable<C, C>::value, ! std::is_empty<C>::value && detail::is_comparable<C, C>::value,
bool bool
>::type >::type
eq(const C& lhs, const C& rhs) { eq(const C& lhs, const C& rhs) const {
return lhs == rhs; return lhs == rhs;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment