We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7b48c7 commit 987c34bCopy full SHA for 987c34b
olp-cpp-sdk-core/src/utils/BoostExceptionHandle.cpp
@@ -26,6 +26,8 @@
26
#include <stdlib.h>
27
#include <exception>
28
29
+#include <boost/version.hpp>
30
+
31
namespace {
32
constexpr auto kLogTag = "BoostExceptionHandle";
33
}
@@ -36,5 +38,13 @@ OLP_CPP_SDK_DECL_EXPORT void throw_exception(const std::exception& e) {
36
38
OLP_SDK_LOG_ABORT_F(kLogTag, "Exception occurred: '%s'", e.what());
37
39
40
41
+#if BOOST_VERSION >= 107300
42
+OLP_CPP_SDK_DECL_EXPORT void throw_exception(
43
+ const std::exception& e, boost::source_location const& loc) {
44
+ OLP_SDK_LOG_ABORT_F(kLogTag, "Exception occurred: '%s' location: '%s'",
45
+ e.what(), loc.to_string().c_str());
46
+}
47
+#endif
48
49
} // namespace boost
50
#endif
0 commit comments