This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] libstdc++/8347


>#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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]