This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: memsetting a locale object
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Bourne <bourne at toughguy dot net>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: 13 Nov 2002 06:36:45 +0100
- Subject: Re: memsetting a locale object
- Organization: Integrable Solutions
- References: <3DD1E025.EBFB9178@toughguy.net>
Bourne <bourne@toughguy.net> writes:
| locale* foobar = new locale("foo");
| memset(foobar,0,sizeof(class locale));
Don't do that. You can't memset() a non-POD class-type object.
-- Gaby