Skip to content

Commit 21a9079

Browse files
committed
Ignore warning on old compilers
1 parent 8c80594 commit 21a9079

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

include/boost/decimal/detail/from_string.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,19 @@
2020
namespace boost {
2121
namespace decimal {
2222

23+
#if defined(__clang__) && (__clang_major__ >= 6 && __clang_major__ < 14)
24+
# pragma clang diagnostic push
25+
# pragma clang diagnostic ignored "-Wundefined-inline"
26+
#endif
27+
2328
// Forward decl needed for string constructor
2429
BOOST_DECIMAL_EXPORT template <BOOST_DECIMAL_DECIMAL_FLOATING_TYPE TargetDecimalType>
2530
constexpr auto from_chars(const char* first, const char* last, TargetDecimalType& value, chars_format fmt = chars_format::general) noexcept -> from_chars_result;
2631

32+
#if defined(__clang__) && (__clang_major__ >= 6 && __clang_major__ < 14)
33+
# pragma clang diagnostic pop
34+
#endif
35+
2736
namespace detail {
2837

2938
template <BOOST_DECIMAL_DECIMAL_FLOATING_TYPE T>

0 commit comments

Comments
 (0)