Header compile failure on OSX with Xcode
Posted: Wed Aug 04 2021 6:04 pm
I'm new to CopperSpice (I have previously been looking at JUCE & U++) and am falling at the first hurdle. As soon as I include <qstring.h>, I get a compile failure in qglobal.h saying that std::is_trivially_copyable_v is not defined. I have the latest OSX and Xcode versions and have found its type_traits header file which includes...
#if _LIBCPP_STD_VER > 14 && !defined(_LIBCPP_HAS_NO_VARIABLE_TEMPLATES)
template <class _Tp>
_LIBCPP_INLINE_VAR _LIBCPP_CONSTEXPR bool is_trivially_copyable_v
= is_trivially_copyable<_Tp>::value;
#endif
I have set the C++ language dialect to GNU++17 but to no effect. Any help will be much appreciated.
Thanks in advance.
#if _LIBCPP_STD_VER > 14 && !defined(_LIBCPP_HAS_NO_VARIABLE_TEMPLATES)
template <class _Tp>
_LIBCPP_INLINE_VAR _LIBCPP_CONSTEXPR bool is_trivially_copyable_v
= is_trivially_copyable<_Tp>::value;
#endif
I have set the C++ language dialect to GNU++17 but to no effect. Any help will be much appreciated.
Thanks in advance.