Skip to content
Snippets Groups Projects
Commit 94ed8b34 authored by Maxence Naud's avatar Maxence Naud
Browse files

__or_ did not work with MSVC so changed for classical logical or (||)

parent a5914815
No related branches found
No related tags found
2 merge requests!15Remove CParameter memory leak,!3[Fix] Memory leak due to containers serialization
Pipeline #31872 passed
...@@ -27,7 +27,7 @@ private: ...@@ -27,7 +27,7 @@ private:
inline _ValueType& any_cast_ref(const _any& __any) inline _ValueType& any_cast_ref(const _any& __any)
{ {
using _Up = std::remove_cv_t<std::remove_reference_t<_ValueType>>; 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_constructible<_ValueType, const _Up&>::value && "Template argument must be constructible from a const value."));
assert(std::is_object<_Up>::value); assert(std::is_object<_Up>::value);
assert(__any.type() == typeid(_Up)); assert(__any.type() == typeid(_Up));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment