Skip to content

Commit fae4ed4

Browse files
committed
Update header include information in test and docs
1 parent 721b903 commit fae4ed4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
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()

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)