You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Declaration of type alias acl::acl_impl::is_trivially_default_constructible fails to compile in configurations using Clang but not libcpp using c++20 standard libraries
#509
Open
davidra opened this issue
Jul 30, 2024
· 2 comments
std::has_trivial_default_constructor has been long deprecated and is now removed from C++20 libraries, which means that when the check #if !defined(__GNUG__) || defined(_LIBCPP_VERSION) || defined(_GLIBCXX_USE_CXX11_ABI) fails the code fails to compile when compiled for a standard library compliant with C++20 that is not libcxx (e.g., when building code with a PlayStation SDK).
The text was updated successfully, but these errors were encountered:
Hello and apologies for the late reply.
That is unfortunate :(
Perhaps it would be suitable to only use has_trivial_default_constructor if we compile C++11 since we can't guarantee standard compliance for compilers that partially implement it but anything using C++14 and up would require full C++11 coverage, avoiding your issue. Maybe something along the lines of #if RTM_CPP_VERSION < RTM_CPP_VERSION_14 && everything else. How does that sound?
std::has_trivial_default_constructor
has been long deprecated and is now removed from C++20 libraries, which means that when the check#if !defined(__GNUG__) || defined(_LIBCPP_VERSION) || defined(_GLIBCXX_USE_CXX11_ABI)
fails the code fails to compile when compiled for a standard library compliant with C++20 that is not libcxx (e.g., when building code with a PlayStation SDK).The text was updated successfully, but these errors were encountered: