mirror of
https://github.com/boostorg/regex.git
synced 2025-07-21 00:02:41 +02:00
Add some typecasts to prevent copying a buffer twice (makes sure we find the correct overload of assign).
[SVN r72541]
This commit is contained in:
@ -398,7 +398,7 @@ public:
|
|||||||
typedef typename traits::string_type seq_type;
|
typedef typename traits::string_type seq_type;
|
||||||
seq_type a(arg_first, arg_last);
|
seq_type a(arg_first, arg_last);
|
||||||
if(a.size())
|
if(a.size())
|
||||||
assign(&*a.begin(), &*a.begin() + a.size(), f);
|
assign(static_cast<const charT*>(&*a.begin()), static_cast<const charT*>(&*a.begin() + a.size()), f);
|
||||||
else
|
else
|
||||||
assign(static_cast<const charT*>(0), static_cast<const charT*>(0), f);
|
assign(static_cast<const charT*>(0), static_cast<const charT*>(0), f);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user