From b127cfb176da266318830ef21d40a593d13bc813 Mon Sep 17 00:00:00 2001 From: Dominic Koepke Date: Tue, 31 Dec 2024 02:12:39 +0100 Subject: [PATCH] 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. --- src/platform/exception_type.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/exception_type.hpp b/src/platform/exception_type.hpp index 5a989a3..a9e967d 100644 --- a/src/platform/exception_type.hpp +++ b/src/platform/exception_type.hpp @@ -7,6 +7,7 @@ // libstdc++ and libc++ #if defined(CPPTRACE_HAS_CXX_EXCEPTION_TYPE) && (IS_LIBSTDCXX || IS_LIBCXX) + #include #include #include "demangle/demangle.hpp" #endif