Re: [Nit] Re: Private constructor
"Jeff Schwab" <jeffplus@comca st.net> wrote in message
news:j9CdnWsk3d gaB3miRVn-vA@comcast.com. ..[color=blue]
> Ron Natalie wrote:[color=green]
> > "Jeff Schwab" <jeffplus@comca st.net> wrote in message
> > news:Lc-dnSQxNPnx8HmiRV n-ig@comcast.com. ..
> >
> >[color=darkred]
> >>>I have no clue what you are talking about. Constructors are[/color][/color][/color]
non-static[color=blue][color=green][color=darkred]
> >>>member functions. You can't call them.
> >>
> >><nit> Yes, you can. Allocators do it all the time. </nit>[/color]
> >
> >
> > Sorry, totally wrong. They do not participate in name resolution, they
> > can't be called. Allocators don't do it.[/color]
>
> I don't know what you mean. Is there a technicality that makes my use
> of "call" incorrect? Where should I look for an explanation?[/color]
Yes, there is no way to call a constructor. They don't have names, the do
not
participate in name resolution. You can NOT call them. They are called
by
the implementation as a side effect of creating an object.
"Jeff Schwab" <jeffplus@comca st.net> wrote in message
news:j9CdnWsk3d gaB3miRVn-vA@comcast.com. ..[color=blue]
> Ron Natalie wrote:[color=green]
> > "Jeff Schwab" <jeffplus@comca st.net> wrote in message
> > news:Lc-dnSQxNPnx8HmiRV n-ig@comcast.com. ..
> >
> >[color=darkred]
> >>>I have no clue what you are talking about. Constructors are[/color][/color][/color]
non-static[color=blue][color=green][color=darkred]
> >>>member functions. You can't call them.
> >>
> >><nit> Yes, you can. Allocators do it all the time. </nit>[/color]
> >
> >
> > Sorry, totally wrong. They do not participate in name resolution, they
> > can't be called. Allocators don't do it.[/color]
>
> I don't know what you mean. Is there a technicality that makes my use
> of "call" incorrect? Where should I look for an explanation?[/color]
Yes, there is no way to call a constructor. They don't have names, the do
not
participate in name resolution. You can NOT call them. They are called
by
the implementation as a side effect of creating an object.
Comment