File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
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-
2918auto 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
You can’t perform that action at this time.
0 commit comments