mirror of
https://github.com/boostorg/config.git
synced 2026-01-25 16:52:25 +01:00
* Update cxxstd values for GHA msvc jobs * Add msvc support for [[maybe_unused]] attribute. Fixes: https://github.com/boostorg/serialization/issues/271 Also removes failing cuda+clang test as it's an inscrutable system setup issue. * Add C++23 header macros. * Minor corrections. * Remove XCode-9.4 testing as it appears to be no longer supported. * Update docs for C++23 macros. [CI SKIP] * Add C++23 feature test macro support. * Use __apple_build_version__ to detect Apple clang …since __APPLE__ is defined by both Apple Clang and LLVM.org Clang on Apple platforms. * Update BOOST_CLANG_VERSION for Xcode 14.3, 15.0, 15.1 * Update CI clang version now that gcc has changed. (#489) --------- Co-authored-by: Peter Dimov <pdimov@gmail.com> Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
38 lines
905 B
C++
38 lines
905 B
C++
// (C) Copyright John Maddock 2023
|
|
|
|
// Use, modification and distribution are subject to the
|
|
// Boost Software License, Version 1.0. (See accompanying file
|
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
// See http://www.boost.org/libs/config for more information.
|
|
|
|
// MACRO: BOOST_NO_CXX23_HDR_STDFLOAT
|
|
// TITLE: C++23 header <stdfloat> unavailable
|
|
// DESCRIPTION: The standard library does not supply C++23 header <stdfloat>
|
|
|
|
#include <stdfloat>
|
|
|
|
namespace boost_no_cxx23_hdr_stdfloat {
|
|
|
|
int test()
|
|
{
|
|
#if defined(__STDCPP_FLOAT16_T__)
|
|
using std::float16_t;
|
|
#endif
|
|
#if defined(__STDCPP_FLOAT32_T__)
|
|
using std::float32_t;
|
|
#endif
|
|
#if defined(__STDCPP_FLOAT64_T__)
|
|
using std::float64_t;
|
|
#endif
|
|
#if defined(__STDCPP_FLOAT128_T__)
|
|
using std::float128_t;
|
|
#endif
|
|
#if defined(__STDCPP_BFLOAT16_T__)
|
|
using std::bfloat16_t;
|
|
#endif
|
|
return 0;
|
|
}
|
|
|
|
}
|