[RFC] libstdc++/8347
B. Kosnik
bkoz@nabi.net
Fri Oct 25 09:05:00 GMT 2002
>#include <vector>
>#include <string>
>
>int main(int argc,char** argv)
>{
> std::vector<char> empty;
> std::string empty2(empty.begin(),empty.end());
>}
vs
>#include <vector>
>#include <string>
>
>int main(int argc,char** argv)
>{
> std::string empty;
> std::string empty2(empty.begin(),empty.end());
>}
This was a case that was not considered when the _S_construct changes to
throw on null were added. I agree that something consistent should be
done here.
>Which one, in case?
That's a good question....... right now I'd lean towards removing the
_S_construct bits. Thoughts?
-benjamin
More information about the Libstdc++
mailing list