mirror of
https://github.com/boostorg/regex.git
synced 2025-07-20 15:52:09 +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;
|
||||
seq_type a(arg_first, arg_last);
|
||||
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
|
||||
assign(static_cast<const charT*>(0), static_cast<const charT*>(0), f);
|
||||
}
|
||||
|
Reference in New Issue
Block a user