We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a814570 commit 6868405Copy full SHA for 6868405
examples/literals.cpp
@@ -17,8 +17,8 @@ int main()
17
{
18
using namespace boost::decimal;
19
20
- const auto pi_32 {"3.141592653589793238"_DF};
21
- const auto pi_64 {"3.141592653589793238"_DD};
+ BOOST_DECIMAL_ATTRIBUTE_UNUSED const auto pi_32 {"3.141592653589793238"_DF};
+ BOOST_DECIMAL_ATTRIBUTE_UNUSED const auto pi_64 {"3.141592653589793238"_DD};
22
23
assert(float_equal(pi_32, static_cast<decimal32>(pi_64))); // Explicit conversion between decimal types
24
assert(float_equal(pi_32, boost::decimal::numbers::pi_v<decimal32>)); // Constants available in numbers namespace
0 commit comments