comparison DEPENDENCIES/generic/include/boost/regex/v4/match_results.hpp @ 101:c530137014c0

Update Boost headers (1.58.0)
author Chris Cannam
date Mon, 07 Sep 2015 11:12:49 +0100
parents 2665513ce2d3
children
comparison
equal deleted inserted replaced
100:793467b5e61c 101:c530137014c0
74 typedef re_detail::named_subexpressions named_sub_type; 74 typedef re_detail::named_subexpressions named_sub_type;
75 75
76 // construct/copy/destroy: 76 // construct/copy/destroy:
77 explicit match_results(const Allocator& a = Allocator()) 77 explicit match_results(const Allocator& a = Allocator())
78 #ifndef BOOST_NO_STD_ALLOCATOR 78 #ifndef BOOST_NO_STD_ALLOCATOR
79 : m_subs(a), m_base(), m_last_closed_paren(0), m_is_singular(true) {} 79 : m_subs(a), m_base(), m_null(), m_last_closed_paren(0), m_is_singular(true) {}
80 #else 80 #else
81 : m_subs(), m_base(), m_last_closed_paren(0), m_is_singular(true) { (void)a; } 81 : m_subs(), m_base(), m_null(), m_last_closed_paren(0), m_is_singular(true) { (void)a; }
82 #endif 82 #endif
83 //
84 // IMPORTANT: in the code below, the crazy looking checks around m_is_singular are
85 // all required because it is illegal to copy a singular iterator.
86 // See https://svn.boost.org/trac/boost/ticket/3632.
87 //
83 match_results(const match_results& m) 88 match_results(const match_results& m)
84 : m_subs(m.m_subs), m_named_subs(m.m_named_subs), m_last_closed_paren(m.m_last_closed_paren), m_is_singular(m.m_is_singular) 89 : m_subs(m.m_subs), m_named_subs(m.m_named_subs), m_last_closed_paren(m.m_last_closed_paren), m_is_singular(m.m_is_singular)
85 { 90 {
86 if(!m_is_singular) 91 if(!m_is_singular)
87 { 92 {