This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] std::string(0);
Just a thought:
- Add "__attribute__ ((warn_on_execute_with_zero))" (or pick a better
name ;)
- Change the pointer parameter of basic_string's ctor to use the above
Would be even more general than restricting our thinking on
basic_string. And this might also catch:
const char* p = 0;
std::string(p);
Regards, Daniel
--
Daniel Frey
aixigo AG - financial solutions & technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey@aixigo.de, web: http://www.aixigo.de