forked from boostorg/regex
Minor purify error fixes
[SVN r10713]
This commit is contained in:
@ -91,34 +91,34 @@ inline bool BOOST_RE_CALL reg_expression<charT, traits, Allocator>::can_start(ch
|
|||||||
|
|
||||||
template <class charT, class traits, class Allocator>
|
template <class charT, class traits, class Allocator>
|
||||||
CONSTRUCTOR_INLINE reg_expression<charT, traits, Allocator>::reg_expression(const Allocator& a)
|
CONSTRUCTOR_INLINE reg_expression<charT, traits, Allocator>::reg_expression(const Allocator& a)
|
||||||
: regbase(), data(a), pkmp(0), error_code_(REG_EMPTY)
|
: regbase(), data(a), pkmp(0), error_code_(REG_EMPTY), _expression(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class charT, class traits, class Allocator>
|
template <class charT, class traits, class Allocator>
|
||||||
CONSTRUCTOR_INLINE reg_expression<charT, traits, Allocator>::reg_expression(const charT* p, flag_type f, const Allocator& a)
|
CONSTRUCTOR_INLINE reg_expression<charT, traits, Allocator>::reg_expression(const charT* p, flag_type f, const Allocator& a)
|
||||||
: data(a), pkmp(0), error_code_(REG_EMPTY)
|
: data(a), pkmp(0), error_code_(REG_EMPTY), _expression(0)
|
||||||
{
|
{
|
||||||
set_expression(p, f | regbase::use_except);
|
set_expression(p, f | regbase::use_except);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class charT, class traits, class Allocator>
|
template <class charT, class traits, class Allocator>
|
||||||
CONSTRUCTOR_INLINE reg_expression<charT, traits, Allocator>::reg_expression(const charT* p1, const charT* p2, flag_type f, const Allocator& a)
|
CONSTRUCTOR_INLINE reg_expression<charT, traits, Allocator>::reg_expression(const charT* p1, const charT* p2, flag_type f, const Allocator& a)
|
||||||
: data(a), pkmp(0), error_code_(REG_EMPTY)
|
: data(a), pkmp(0), error_code_(REG_EMPTY), _expression(0)
|
||||||
{
|
{
|
||||||
set_expression(p1, p2, f | regbase::use_except);
|
set_expression(p1, p2, f | regbase::use_except);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class charT, class traits, class Allocator>
|
template <class charT, class traits, class Allocator>
|
||||||
CONSTRUCTOR_INLINE reg_expression<charT, traits, Allocator>::reg_expression(const charT* p, size_type len, flag_type f, const Allocator& a)
|
CONSTRUCTOR_INLINE reg_expression<charT, traits, Allocator>::reg_expression(const charT* p, size_type len, flag_type f, const Allocator& a)
|
||||||
: data(a), pkmp(0), error_code_(REG_EMPTY)
|
: data(a), pkmp(0), error_code_(REG_EMPTY), _expression(0)
|
||||||
{
|
{
|
||||||
set_expression(p, p + len, f | regbase::use_except);
|
set_expression(p, p + len, f | regbase::use_except);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class charT, class traits, class Allocator>
|
template <class charT, class traits, class Allocator>
|
||||||
reg_expression<charT, traits, Allocator>::reg_expression(const reg_expression<charT, traits, Allocator>& e)
|
reg_expression<charT, traits, Allocator>::reg_expression(const reg_expression<charT, traits, Allocator>& e)
|
||||||
: regbase(e), data(e.allocator()), pkmp(0), error_code_(REG_EMPTY)
|
: regbase(e), data(e.allocator()), pkmp(0), error_code_(REG_EMPTY), _expression(0)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// we do a deep copy only if e is a valid expression, otherwise fail.
|
// we do a deep copy only if e is a valid expression, otherwise fail.
|
||||||
|
Reference in New Issue
Block a user