From c126ed4b870219e06ba690e67da938f393d8d17a Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 9 Mar 2001 11:51:44 +0000 Subject: [PATCH] regex: tweeked type_traits usage to reduce header dependencies [SVN r9519] --- include/boost/regex.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/boost/regex.hpp b/include/boost/regex.hpp index 8a050f2d..e4a10596 100644 --- a/include/boost/regex.hpp +++ b/include/boost/regex.hpp @@ -49,7 +49,7 @@ #include #include #include -#include +#include namespace boost{ @@ -428,6 +428,16 @@ struct def_alloc_param_traits typedef typename regex_iterator_traits::value_type const_value_type; typedef typename remove_cv::type type; }; +template <> +struct def_alloc_param_traits +{ + typedef char type; +}; +template <> +struct def_alloc_param_traits +{ + typedef wchar_t type; +}; }