Skip to content

Commit 522bb8b

Browse files
committed
fix: replace mimic++/Utility.hpp include in test-adapters with mimic++/utilities/C++23Backports.hpp
1 parent da469c7 commit 522bb8b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

include/mimic++/adapters/BoostTest.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#if __has_include("mimic++/Reporting.hpp")
1212
#include "mimic++/Reporting.hpp"
13-
#include "mimic++/Utility.hpp"
13+
#include "mimic++/utilities/C++23Backports.hpp"
1414
#elif not defined(MIMICPP_VERSION)
1515
#error "It appears that the test-adapter is not included in the mimic++ project or package." \
1616
"If you plan to use it alongside the mimic++-amalgamated header, please ensure to include the adapter-header afterwards."
@@ -32,7 +32,7 @@ namespace mimicpp::reporting::detail::boost_test
3232
inline void send_fail(StringViewT const msg)
3333
{
3434
BOOST_TEST_FAIL(msg);
35-
unreachable();
35+
util::unreachable();
3636
}
3737

3838
inline void send_success(StringViewT const msg)

include/mimic++/adapters/Catch2.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#if __has_include("mimic++/Reporting.hpp")
1212
#include "mimic++/Reporting.hpp"
13-
#include "mimic++/Utility.hpp"
13+
#include "mimic++/utilities/C++23Backports.hpp"
1414
#elif not defined(MIMICPP_VERSION)
1515
#error "It appears that the test-adapter is not included in the mimic++ project or package." \
1616
"If you plan to use it alongside the mimic++-amalgamated header, please ensure to include the adapter-header afterwards."
@@ -33,7 +33,7 @@ namespace mimicpp::reporting::detail::catch2
3333
FAIL(msg);
3434
#endif
3535

36-
unreachable();
36+
util::unreachable();
3737
}
3838

3939
inline void send_success(StringViewT const msg)

include/mimic++/adapters/Doctest.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#if __has_include("mimic++/Reporting.hpp")
1212
#include "mimic++/Reporting.hpp"
13-
#include "mimic++/Utility.hpp"
13+
#include "mimic++/utilities/C++23Backports.hpp"
1414
#elif not defined(MIMICPP_VERSION)
1515
#error "It appears that the test-adapter is not included in the mimic++ project or package." \
1616
"If you plan to use it alongside the mimic++-amalgamated header, please ensure to include the adapter-header afterwards."
@@ -30,7 +30,7 @@ namespace mimicpp::reporting::detail::doctest
3030
inline void send_fail(StringViewT const msg)
3131
{
3232
DOCTEST_FAIL(msg);
33-
unreachable();
33+
util::unreachable();
3434
}
3535

3636
inline void send_success(StringViewT const msg)

0 commit comments

Comments
 (0)