__cpp_lib_any and __cpp_lib_chrono are defined unconditionally in C++20
and __cpp_lib_three_way_comparison and __cpp_lib_concepts depend on
front-end features which are definitely supported by GCC trunk and all
non-GCC compilers we care about.
libstdc++-v3/ChangeLog:
* src/c++23/std.cc.in: Remove redundant checks for feature test
macros that are always true.
Reviewed-by: Tomasz KamiĆski <tkaminsk@redhat.com>
}
// 22.7.2 <any>
-#if __cpp_lib_any
export namespace std
{
using std::any;
using std::make_any;
using std::swap;
}
-#endif
// 24.3.2 <array>
export namespace std
}
// 29.2 <chrono>
-#if __cpp_lib_chrono
export namespace std
{
namespace chrono
export namespace std::chrono {
using namespace literals::chrono_literals;
}
-#endif // __cpp_lib_chrono
// <codecvt>: deprecated C++17, removed C++26
export namespace std
}
// 17.11.1 <compare>
-#if __cpp_lib_three_way_comparison
export namespace std
{
using std::common_comparison_category;
using std::strong_order;
using std::weak_order;
}
-#endif // __cpp_lib_three_way_comparison
// 28.4 <complex>
export namespace std
}
// 18 <concepts>
-#if __cpp_lib_concepts
export namespace std
{
using std::assignable_from;
using std::totally_ordered;
using std::totally_ordered_with;
}
-#endif
// 33.7 <condition_variable>
export namespace std