Skip to content

Commit 42eec85

Browse files
committed
Add char8_t detection macro
1 parent 86b1502 commit 42eec85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/boost/decimal/detail/config.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,4 +412,8 @@ static_assert(std::is_same<long double, __float128>::value, "__float128 should b
412412

413413
#endif
414414

415+
#if defined(__cpp_char8_t) && __cpp_char8_t >= 201811L
416+
# define BOOST_DECIMAL_HAS_CHAR8_T
417+
#endif
418+
415419
#endif // BOOST_DECIMAL_DETAIL_CONFIG_HPP

0 commit comments

Comments
 (0)