forked from boostorg/range
[boost][range] correct lifetime defect in the tokenized range adapter
[SVN r85697]
This commit is contained in:
6
include/boost/range/adaptor/tokenized.hpp
Executable file → Normal file
6
include/boost/range/adaptor/tokenized.hpp
Executable file → Normal file
@ -52,9 +52,9 @@ namespace boost
|
|||||||
template< class T, class U, class V >
|
template< class T, class U, class V >
|
||||||
struct regex_holder
|
struct regex_holder
|
||||||
{
|
{
|
||||||
const T& re;
|
T re;
|
||||||
const U& sub;
|
U sub;
|
||||||
V f;
|
V f;
|
||||||
|
|
||||||
regex_holder( const T& rex, const U& subm, V flag ) :
|
regex_holder( const T& rex, const U& subm, V flag ) :
|
||||||
re(rex), sub(subm), f(flag)
|
re(rex), sub(subm), f(flag)
|
||||||
|
Reference in New Issue
Block a user