From 2ebe6d4ec7da1cbc065255febf3caa9b934dd208 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 27 Feb 2007 10:13:14 +0000 Subject: [PATCH] Patches for HP aCC and Compaq tru64 [SVN r37106] --- include/boost/regex/concepts.hpp | 8 +++++++- include/boost/regex/v4/regex_traits.hpp | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/boost/regex/concepts.hpp b/include/boost/regex/concepts.hpp index 7a3a8470..22cea2c5 100644 --- a/include/boost/regex/concepts.hpp +++ b/include/boost/regex/concepts.hpp @@ -68,7 +68,13 @@ struct char_architype // } // namespace boost namespace std{ - template<> struct char_traits{}; + template<> struct char_traits + { + // The intent is that this template is not instantiated, + // but this typedef gives us a chance of compilation in + // case it is: + typedef char_architype char_type; + }; } namespace boost{ // diff --git a/include/boost/regex/v4/regex_traits.hpp b/include/boost/regex/v4/regex_traits.hpp index 93ee9caa..9cc7f458 100644 --- a/include/boost/regex/v4/regex_traits.hpp +++ b/include/boost/regex/v4/regex_traits.hpp @@ -76,7 +76,7 @@ struct regex_traits : public implementationT // required "standard" ones: // namespace re_detail{ -#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !BOOST_WORKAROUND(__HP_aCC, BOOST_TESTED_AT(55500)) +#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !BOOST_WORKAROUND(__HP_aCC, BOOST_TESTED_AT(60000)) BOOST_MPL_HAS_XXX_TRAIT_DEF(boost_extensions_tag) #else template @@ -129,7 +129,7 @@ struct compute_wrapper_base { typedef BaseT type; }; -#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !BOOST_WORKAROUND(__HP_aCC, BOOST_TESTED_AT(55500)) +#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !BOOST_WORKAROUND(__HP_aCC, BOOST_TESTED_AT(60000)) template struct compute_wrapper_base {