Skip to content

Commit b127cfb

Browse files
authored
Add missing typeinfo include (#202)
Hello, as you know, I'm working on an integration of ``cpptrace`` into my own mocking framework. I've an exhaustive build-workflow with various compiler-configurations. One of these configs fails compiling due to this error: ```src/platform/exception_type.hpp:19:39: error: member access into incomplete type 'const std::type_info'``` This happens to be the case, when ``clang-16`` with c++23 and `-stdlib=libc++` is used. see: https://github.com/DNKpp/mimicpp/actions/runs/12549146490/job/34989686008 and https://github.com/DNKpp/mimicpp/actions/runs/12549146490/job/34989688648 This fixes the issue.
1 parent b23bc42 commit b127cfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/exception_type.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
// libstdc++ and libc++
99
#if defined(CPPTRACE_HAS_CXX_EXCEPTION_TYPE) && (IS_LIBSTDCXX || IS_LIBCXX)
10+
#include <typeinfo>
1011
#include <cxxabi.h>
1112
#include "demangle/demangle.hpp"
1213
#endif

0 commit comments

Comments
 (0)