Disable template instantiation for Clang: it breaks with -fvisibility=hidden

This commit is contained in:
jzmaddock
2018-08-25 18:05:18 +01:00
parent c7520556f7
commit 40ecdc3f8b

View File

@ -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