From 40ecdc3f8b52cc6833f05b37610e916824ba88c7 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sat, 25 Aug 2018 18:05:18 +0100 Subject: [PATCH] Disable template instantiation for Clang: it breaks with -fvisibility=hidden --- include/boost/regex/config.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/regex/config.hpp b/include/boost/regex/config.hpp index 1df0097d..de817dbf 100644 --- a/include/boost/regex/config.hpp +++ b/include/boost/regex/config.hpp @@ -113,6 +113,13 @@ #if defined(__MINGW32__) # define BOOST_REGEX_NO_EXTERNAL_TEMPLATES #endif +/* + * Clang fails to export template instances with -fvisibility=hidden, see + * https://github.com/boostorg/regex/issues/49 + */ +#ifdef __clang__ +# define BOOST_REGEX_NO_EXTERNAL_TEMPLATES +#endif /* * If there isn't good enough wide character support then there will