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:
John Maddock
2011-06-10 17:17:14 +00:00
parent 27ad285fbf
commit 6c181b02ba

View File

@ -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);
}