Skip to content

Commit 0cd5371

Browse files
committed
Add using namespace literals to tests that use them
1 parent d2e682d commit 0cd5371

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

examples/literals.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#include <boost/decimal.hpp>
66
#include <cassert>
77

8+
using namespace boost::decimal::literals;
9+
810
template <typename T>
911
bool float_equal(T lhs, T rhs)
1012
{

test/crash_report_1.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <iostream>
88

99
using namespace boost::decimal;
10+
using namespace boost::decimal::literals;
1011

1112
int main()
1213
{

test/test_constants.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
using namespace boost::decimal;
1010
using namespace boost::decimal::numbers;
11+
using namespace boost::decimal::literals;
1112

1213
template <typename Dec>
1314
void test_constants()

test/test_literals.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <boost/core/lightweight_test.hpp>
99

1010
using namespace boost::decimal;
11+
using namespace boost::decimal::literals;
1112

1213
void test_decimal32_literals()
1314
{

0 commit comments

Comments
 (0)