File tree Expand file tree Collapse file tree
include/boost/safe_numbers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ target_link_libraries(boost_safe_numbers
1616 INTERFACE
1717 Boost::charconv
1818 Boost::core
19- Boost::random
2019 Boost::throw_exception
2120)
2221
Original file line number Diff line number Diff line change 1111
1212#ifndef BOOST_SAFE_NUMBERS_BUILD_MODULE
1313
14- #include < fmt/format.h>
14+ #if __has_include(<fmt/format.h>)
15+ # include < fmt/format.h>
16+ #else
17+ # error "{fmt} is required in order to use this header"
18+ #endif
1519
1620#endif // BOOST_SAFE_NUMBERS_BUILD_MODULE
1721
Original file line number Diff line number Diff line change 2323#pragma clang diagnostic ignored "-Wold-style-cast"
2424#endif
2525
26- #include < boost/random/uniform_int_distribution.hpp>
26+ #if __has_include(<boost/random/uniform_int_distribution.hpp>)
27+ # include < boost/random/uniform_int_distribution.hpp>
28+ #else
29+ # error "Boost.Random is required to use this file"
30+ #endif
2731
2832#endif
2933
You can’t perform that action at this time.
0 commit comments