Skip to content

Commit

Permalink
Ensure that if the stacktrace fallback is required it always has form…
Browse files Browse the repository at this point in the history
…atting support (#359)
  • Loading branch information
Twon authored Mar 3, 2025
1 parent a294c42 commit d298c21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libraries/core/src/morpheus/core/conformance/stacktrace.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <morpheus/core/conformance/version.hpp>

#if __has_include(<stacktrace>)
#include <stacktrace>
#endif
Expand All @@ -11,7 +13,6 @@

#define MORPHEUS_CURRENT_STACKTRACE ::morpheus::st_ns::stacktrace::current()
#else

#include <boost/stacktrace/stacktrace.hpp>
namespace morpheus { namespace st_ns = boost::stacktrace; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <string_view>

// clang-format off
#if (__cpp_lib_formatters < 202302L)
#if (__cpp_lib_stacktrace < 202011L) or (__cpp_lib_formatters < 202302L)

template <typename Allocator>
struct morpheus::fmt_ns::formatter<morpheus::st_ns::basic_stacktrace<Allocator>>
Expand Down

0 comments on commit d298c21

Please sign in to comment.