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: [v3] system_error, round one


- You have to use strerror_r() if available since some strings are dynamically created.

- why has this class no explicit association with a locale? It should have. strerror() and strerror_r() provide translated strings based on the global locale

- if such a locale is added as for many other classes, then use strerror_l() which is available in glibc and will be available in all future POSIX systems.

- you shouldn't hardcode the highest error number. If you really need that information use the _sys_nerr variable which most Unix systems provide.

--
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â


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