mirror of
https://github.com/boostorg/regex.git
synced 2025-07-15 21:32:18 +02:00
regex: tweeked type_traits usage to reduce header dependencies
[SVN r9519]
This commit is contained in:
@ -49,7 +49,7 @@
|
||||
#include <boost/re_detail/regex_kmp.hpp>
|
||||
#include <boost/pattern_except.hpp>
|
||||
#include <boost/regex_traits.hpp>
|
||||
#include <boost/type_traits.hpp>
|
||||
#include <boost/type_traits/transform_traits.hpp>
|
||||
|
||||
|
||||
namespace boost{
|
||||
@ -428,6 +428,16 @@ struct def_alloc_param_traits
|
||||
typedef typename regex_iterator_traits<I>::value_type const_value_type;
|
||||
typedef typename remove_cv<const_value_type>::type type;
|
||||
};
|
||||
template <>
|
||||
struct def_alloc_param_traits<const char*>
|
||||
{
|
||||
typedef char type;
|
||||
};
|
||||
template <>
|
||||
struct def_alloc_param_traits<const wchar_t*>
|
||||
{
|
||||
typedef wchar_t type;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user