Skip to content

Commit 16a8fee

Browse files
authored
Merge pull request #289 from cppalliance/develop
Merge to master for v1.5.1
2 parents f9e9310 + 257d70e commit 16a8fee

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

include/boost/int128.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,4 @@
1515
#include <boost/int128/climits.hpp>
1616
#include <boost/int128/cstdlib.hpp>
1717

18-
#ifndef BOOST_INT128_BUILD_MODULE
19-
#include <boost/int128/fmt_format.hpp>
20-
#endif
21-
2218
#endif // BOOST_INT128_HPP

include/boost/int128/fmt_format.hpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,22 @@
1212
#include <boost/int128/int128.hpp>
1313
#include <cstring>
1414
#include <cstdlib>
15-
#include <fmt/base.h>
16-
#include <fmt/format.h>
1715
#include <algorithm>
1816
#include <tuple>
1917

18+
#ifdef __GNUC__
19+
# pragma GCC diagnostic push
20+
# pragma GCC diagnostic ignored "-Wconversion"
21+
# pragma GCC diagnostic ignored "-Wsign-conversion"
22+
#endif
23+
24+
#include <fmt/base.h>
25+
#include <fmt/format.h>
26+
27+
#ifdef __GNUC__
28+
# pragma GCC diagnostic pop
29+
#endif
30+
2031
#define BOOST_INT128_HAS_FMT_FORMAT
2132

2233
namespace boost {

include/boost/int128/format.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
#ifndef BOOST_INT128_FORMAT_HPP
66
#define BOOST_INT128_FORMAT_HPP
77

8-
#if (__cplusplus >= 202002L || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)) && \
9-
((defined(__GNUC__) && __GNUC__ >= 13) || (defined(__clang__) && __clang_major__ >= 18) || (defined(_MSC_VER) && _MSC_VER >= 1940))
8+
#if __has_include(<format>) && defined(__cpp_lib_format) && __cpp_lib_format >= 201907L && !defined(BOOST_DECIMAL_DISABLE_CLIB)
109

1110
#include <boost/int128/detail/mini_to_chars.hpp>
1211
#include <boost/int128/detail/config.hpp>

0 commit comments

Comments
 (0)