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
/* every header in libc/include *//* every header in libcxx/include (excluding C++20 <concepts>) */intmain(void) {
return0;
}
This compiles fine in c++2b c++20 c++17 c++14 and gnu++2b gnu++20 gnu++17 gnu++14, but I get errors from <type_traits> and <utility> when compiling under C++11 CXXFLAGS = -Wall -Wextra -Wshadow -O0 -std=c++11 (gnu++11 gave the same errors)
/* std::move */
toolchain/CEdev/include/c++/type_traits:304:45: error: 'auto'return without
trailing return type; deduced return types are a C++14 extension
template<class_Tp> _EZCXX_INLINE constexprautomove(_Tp&& __value) noexcept {
^
/* std::swap */
toolchain/CEdev/include/c++/type_traits:309:1: error: no return statement in
constexpr function
swap(_Tp& __lhs, _Tp& __rhs) noexcept(is_nothrow_move_constructible_v<_Tp> && is_nothrow_move_assignable_v<_Tp>) {
^
/* std::as_const */
toolchain/CEdev/include/c++/utility:32:45: error: 'auto'return without trailing
return type; deduced return types are a C++14 extension
template<class_Tp> _EZCXX_INLINE constexprautoas_const(_Tp const&& __value) noexcept = delete;
^
Going off cppreference, some of these functions may have incorrect prototypes. Commenting out the functions allows the code to compile okay in C++11 otherwise.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
This compiles fine in
c++2b c++20 c++17 c++14
andgnu++2b gnu++20 gnu++17 gnu++14
, but I get errors from<type_traits>
and<utility>
when compiling under C++11CXXFLAGS = -Wall -Wextra -Wshadow -O0 -std=c++11
(gnu++11
gave the same errors)Going off cppreference, some of these functions may have incorrect prototypes. Commenting out the functions allows the code to compile okay in C++11 otherwise.
The text was updated successfully, but these errors were encountered: