From dfccfc56c1c676c70e95aa6ae8cc10412899b974 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 13 Sep 2024 22:40:54 -0500 Subject: [PATCH] xo-indentlog: handle gcc 13.3 --- include/xo/indentlog/print/function.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/xo/indentlog/print/function.hpp b/include/xo/indentlog/print/function.hpp index 095df5c7..9a6e56ee 100644 --- a/include/xo/indentlog/print/function.hpp +++ b/include/xo/indentlog/print/function.hpp @@ -147,7 +147,12 @@ namespace xo { /* clang footnote like [CharT = char] instead of [with CharT = char] */ std::size_t p = s.find(" ["); #else +# if (__GNUC__ > 13) || ((__GNUC__ == 13) && (__GNUC_MINOR__ >= 3)) + /* gcc footnote like [CharT = char] instead of [with CharT = char] starting w/ gcc 13.3 (approximately ?)*/ + std::size_t p = s.find(" ["); +# else std::size_t p = s.find(" [with "); +# endif #endif return s.substr(0, p);