[RFC] std::string(0);

Daniel Frey daniel.frey@aixigo.de
Fri Jun 11 19:50:00 GMT 2004


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




More information about the Libstdc++ mailing list