From 94ed8b34f048a74392f3c69dc7e16f653bc63d9f Mon Sep 17 00:00:00 2001 From: NAUD Maxence <maxence.naud@cea.fr> Date: Thu, 21 Sep 2023 08:52:05 +0000 Subject: [PATCH] __or_ did not work with MSVC so changed for classical logical or (||) --- include/aidge/utils/CParameter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/aidge/utils/CParameter.hpp b/include/aidge/utils/CParameter.hpp index 6e8754537..2aba93fe3 100644 --- a/include/aidge/utils/CParameter.hpp +++ b/include/aidge/utils/CParameter.hpp @@ -27,7 +27,7 @@ private: inline _ValueType& any_cast_ref(const _any& __any) { using _Up = std::remove_cv_t<std::remove_reference_t<_ValueType>>; - assert((std::__or_<std::is_reference<_ValueType>, std::is_copy_constructible<_ValueType>>::value && "Template argument must be a reference or CopyConstructible type")); + assert(((std::is_reference<_ValueType>::value || std::is_copy_constructible<_ValueType>::value) && "Template argument must be a reference or CopyConstructible type")); assert((std::is_constructible<_ValueType, const _Up&>::value && "Template argument must be constructible from a const value.")); assert(std::is_object<_Up>::value); assert(__any.type() == typeid(_Up)); -- GitLab