You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/modules/ROOT/pages/examples.adoc
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ pass:[{fmt}] support is available starting with pass:[C++14] so long as you have
158
158
[#examples_fmt_format]
159
159
=== `<fmt/format.hpp>`
160
160
161
-
We also provide support for pass:[{fmt}] so you can easily just swap the namespaces and headers on the above example:
161
+
This example can be found in the `examples/` folder as https://github.com/cppalliance/decimal/blob/develop/examples/fmt_format.cpp[fmt_format.cpp].
162
162
163
163
[source, c++]
164
164
----
@@ -223,6 +223,9 @@ Scientific Format with Specified Precision and Padding:
223
223
03.141e+00
224
224
----
225
225
226
+
IMPORTANT: If you are using the convenience header `<boost/decimal.hpp>` the header `<boost/decimal/fmt_format.hpp>` is *NOT* automatically included since it requires an external library.
227
+
You must include it yourself.
228
+
226
229
[#examples_std_format]
227
230
=== `<format>`
228
231
@@ -257,7 +260,8 @@ Scientific Format with Specified Precision and Padding:
257
260
[#examples_print]
258
261
== `<print>`
259
262
260
-
We can make one final change to our `<format>` example where instead of using `std::cout`, we use pass:[C++23's] `<print>`:
263
+
We can make one final change to our `<format>` example where instead of using `std::cout`, we use pass:[C++23's] `<print>`.
264
+
This example can be found in the `examples/` folder as https://github.com/cppalliance/decimal/blob/develop/examples/print.cpp[print.cpp].
0 commit comments