Skip to content

Commit 1bab586

Browse files
committed
Add additional annotations
1 parent 037dd8f commit 1bab586

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/charconv_cohort_preservation.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
// Distributed under the Boost Software License, Version 1.0.
33
// https://www.boost.org/LICENSE_1_0.txt
44

5-
#include <boost/decimal.hpp>
5+
#include <boost/decimal/decimal32_t.hpp> // For the type decimal32_t
6+
#include <boost/decimal/charconv.hpp> // For decimal support for <charconv>
7+
#include <boost/decimal/iostream.hpp> // For decimal support for <iostream>
68
#include <iostream>
79
#include <array>
810
#include <cstring>
@@ -35,7 +37,9 @@ constexpr std::array<const char*, N> strings = {
3537

3638
int main()
3739
{
38-
using namespace boost::decimal;
40+
using boost::decimal::decimal32_t;
41+
using boost::decimal::from_chars;
42+
using boost::decimal::chars_format;
3943

4044
// In some instances we want to preserve the cohort of our values
4145
// In the above strings array all of these values compare equal,

0 commit comments

Comments
 (0)