From 74d729b8302dd259829bfaa70192ab066273c1c2 Mon Sep 17 00:00:00 2001 From: Mathias Berchtold Date: Fri, 17 Apr 2026 17:46:35 +0200 Subject: [PATCH] Fix template syntax in c_regex_traits.hpp Do not export explicit specializations. Reference to c++ specification: https://eel.is/c++draft/temp.expl.spec#2 MSVC 14.51 correctly complains about this syntax error. --- include/boost/regex/v5/c_regex_traits.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/regex/v5/c_regex_traits.hpp b/include/boost/regex/v5/c_regex_traits.hpp index 3dbf4d896..d40aadf8c 100644 --- a/include/boost/regex/v5/c_regex_traits.hpp +++ b/include/boost/regex/v5/c_regex_traits.hpp @@ -59,7 +59,7 @@ namespace boost{ BOOST_REGEX_MODULE_EXPORT template struct c_regex_traits; -BOOST_REGEX_MODULE_EXPORT template<> +template<> struct c_regex_traits { c_regex_traits(){} @@ -104,7 +104,7 @@ struct c_regex_traits }; #ifndef BOOST_NO_WREGEX -BOOST_REGEX_MODULE_EXPORT template<> +template<> struct c_regex_traits { c_regex_traits(){}