diff --git a/doc/modules/ROOT/pages/format.adoc b/doc/modules/ROOT/pages/format.adoc index b5af291f3..91d19fa95 100644 --- a/doc/modules/ROOT/pages/format.adoc +++ b/doc/modules/ROOT/pages/format.adoc @@ -71,13 +71,15 @@ int main() [#fmt_format] == `` -Support for `{fmt}` is available as long as `` is present. +Support for `{fmt}` is also available. All the above information on modifiers is the same for fmtlib, just in a different namespace (i.e. `fmt::` instead of `std::`). +The header `` is *NOT* part of the convenience header, because it is an optional dependency on a potentially compiled library. [source, c++] ---- #include -#include // or +#include +#include #include int main() diff --git a/include/boost/decimal.hpp b/include/boost/decimal.hpp index 00e7fd678..eb28e95dd 100644 --- a/include/boost/decimal.hpp +++ b/include/boost/decimal.hpp @@ -45,10 +45,6 @@ #include #include -#ifndef BOOST_DECIMAL_BUILD_MODULE -#include -#endif - #if defined(__clang__) && !defined(__GNUC__) # pragma clang diagnostic pop #endif diff --git a/test/test_format_fmtlib.cpp b/test/test_format_fmtlib.cpp index 33de3e276..7e79e2c3c 100644 --- a/test/test_format_fmtlib.cpp +++ b/test/test_format_fmtlib.cpp @@ -9,6 +9,7 @@ #define FMT_HEADER_ONLY #include +#include #include #include