Skip to content

Commit 5d79173

Browse files
committed
Replace workaround with actual boost.log
1 parent 852c5b5 commit 5d79173

1 file changed

Lines changed: 8 additions & 19 deletions

File tree

test/github_issue_1384.cpp

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
// Copyright 2026 Christopher Kormanyos
2+
// Distributed under the Boost Software License, Version 1.0.
3+
// https://www.boost.org/LICENSE_1_0.txt
4+
//
5+
// See: https://github.com/boostorg/decimal/issues/1384
16

7+
#include <boost/log/trivial.hpp>
28
#include <boost/core/lightweight_test.hpp>
9+
#include <boost/decimal.hpp>
310

411
// This simulates upstream inclusion of Boost.Log. At the time of
512
// hash commit e9951622837f63cf0020b22834ad96b01293fd07, this failed.
@@ -8,27 +15,9 @@
815
// no longer occur in the future and that the namespace resolution
916
// remains unequivocal.
1017

11-
namespace boost {
12-
namespace log {
13-
14-
auto do_something() -> void;
15-
16-
// The presence of this namespace-local subroutine itself conflicted
17-
// (at the time of the issue) with Boost.Log. So this behavior is
18-
// simulated here.
19-
20-
auto do_something() -> void { } // LCOV_EXCL_LINE
21-
22-
} // namespace log
23-
} // namespace boost
24-
25-
#include <boost/decimal/cmath.hpp>
26-
27-
auto main() -> int;
28-
2918
auto main() -> int
3019
{
31-
boost::log::do_something(); // LCOV_EXCL_LINE
20+
BOOST_LOG_TRIVIAL(info) << "Boost.Log is present";
3221

3322
using local_decimal_type = boost::decimal::decimal64_t;
3423

0 commit comments

Comments
 (0)