From b9ee7a2f2ee07ff46af9f9339f4a155c2a9c5992 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Mon, 17 Aug 2015 19:28:21 +0100 Subject: [PATCH] Oracle compiler in C++11 mode doesn't like external template instances in shared library. --- include/boost/regex/config.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/boost/regex/config.hpp b/include/boost/regex/config.hpp index fc0b024d..a347bd34 100644 --- a/include/boost/regex/config.hpp +++ b/include/boost/regex/config.hpp @@ -100,7 +100,13 @@ #if defined(_MSC_VER) && !defined(_MSC_EXTENSIONS) # define BOOST_REGEX_NO_EXTERNAL_TEMPLATES #endif -/* + /* + * Oracle compiler in C++11 mode doesn't like external templates for some reason: + */ +#ifdef __SUNPRO_CC +# define BOOST_REGEX_NO_EXTERNAL_TEMPLATES +#endif + /* * Shared regex lib will crash without this, frankly it looks a lot like a gcc bug: */ #if defined(__MINGW32__)