diff --git a/include/boost/regex.hpp b/include/boost/regex.hpp index d3da66ee..8ad2fbca 100644 --- a/include/boost/regex.hpp +++ b/include/boost/regex.hpp @@ -524,7 +524,7 @@ public: set_expression(first, last, f | regbase::use_except); return *this; } -#ifndef BOOST_NO_MEMBER_TEMPLATES +#if !defined(BOOST_NO_MEMBER_TEMPLATES) && !(defined(__IBMCPP__) && (__IBMCPP__ <= 500)) template unsigned int BOOST_REGEX_CALL set_expression(const std::basic_string& p, flag_type f = regbase::normal) diff --git a/include/boost/regex_fwd.hpp b/include/boost/regex_fwd.hpp index 07aea147..679ad945 100644 --- a/include/boost/regex_fwd.hpp +++ b/include/boost/regex_fwd.hpp @@ -53,9 +53,9 @@ class regex_traits; template , class Allocator = BOOST_DEFAULT_ALLOCATOR(charT) > class reg_expression; -typedef reg_expression, BOOST_DEFAULT_ALLOCATOR(char)> regex; +typedef reg_expression, BOOST_DEFAULT_ALLOCATOR(char) > regex; #ifndef BOOST_NO_WREGEX -typedef reg_expression, BOOST_DEFAULT_ALLOCATOR(wchar_t)> wregex; +typedef reg_expression, BOOST_DEFAULT_ALLOCATOR(wchar_t) > wregex; #endif } // namespace boost