Skip to content

Commit d6ba003

Browse files
authored
Merge pull request #1124 from cppalliance/1113
2 parents 6e13076 + fae4ed4 commit d6ba003

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

doc/modules/ROOT/pages/format.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,15 @@ int main()
7171
[#fmt_format]
7272
== `<fmt/format.h>`
7373

74-
Support for `{fmt}` is available as long as `<fmt/format.h>` is present.
74+
Support for `{fmt}` is also available.
7575
All the above information on modifiers is the same for fmtlib, just in a different namespace (i.e. `fmt::` instead of `std::`).
76+
The header `<boost/decimal/fmt_format.hpp>` is *NOT* part of the convenience header, because it is an optional dependency on a potentially compiled library.
7677

7778
[source, c++]
7879
----
7980
#include <fmt/format.h>
80-
#include <boost/decimal.hpp> // or <boost/decimal/fmt_format.hpp>
81+
#include <boost/decimal.hpp>
82+
#include <boost/decimal/fmt_format.hpp>
8183
#include <iostream>
8284
8385
int main()

include/boost/decimal.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@
4545
#include <boost/decimal/string.hpp>
4646
#include <boost/decimal/uint128_t.hpp>
4747

48-
#ifndef BOOST_DECIMAL_BUILD_MODULE
49-
#include <boost/decimal/fmt_format.hpp>
50-
#endif
51-
5248
#if defined(__clang__) && !defined(__GNUC__)
5349
# pragma clang diagnostic pop
5450
#endif

test/test_format_fmtlib.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#define FMT_HEADER_ONLY
1111
#include <boost/decimal.hpp>
12+
#include <boost/decimal/fmt_format.hpp>
1213
#include <boost/core/lightweight_test.hpp>
1314
#include <limits>
1415

0 commit comments

Comments
 (0)