Is it legal C++ (by which I mean according to the standard spec) to pass a
null into a basic_string ctor? Or, more precisely, is it legal C++ to pass a
null pointer into a basic_string parameter on a method?
RE: basic_string ctor ... In our case the NULL pointer is a valid ..."John" wrote: ... > Is it legal C++ (by which I mean according to the standard spec) to pass a ...Prev by Date: ... (microsoft.public.vc.stl)
Re: The difference between 0 and NULL? ... I noticed there existed only one ctor for the class and it was ... It's a no argument ctor that initializes 3 variables in ... I noticed that the pointer was being ... Perhaps your first compile was bad ... (comp.unix.programmer)
RE: ECMA Wrong - Class and Object Initialization Rules - Help! ... > An instance of a class can be created only if the constructor of the class' ... the this pointer is initialized. ... In my example, the .ctor of Object is not invoked at all - so, strictly ... the two .ctor-s invoke each other. ... (microsoft.public.dotnet.framework.clr)
Re: The difference between 0 and NULL? ... > program (the calls to printf() notwithstanding) and ModemObject is a ... I noticed there existed only one ctor for the class and it was ... It's a no argument ctor that initializes 3 variables in ... I noticed that the pointer was being ... (comp.unix.programmer)
Re: basic_string ctor ...Duane Hebert wrote: ... pass a null into a basic_string ctor?... Or, more precisely, is it legal C++ to pass a null pointer into a basic_string parameter on a method? ... In my opinion the cost of the extra ifwould have been well worth... (microsoft.public.vc.stl)