This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] libstdc++/8347
- From: "B. Kosnik" <bkoz at nabi dot net>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 25 Oct 2002 09:05:19 -0700
- Subject: Re: [RFC] libstdc++/8347
- References: <3DB93146.80007@unitus.it>
>#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