explict keyword for constructors with no arguements ?

G

Ganesh Gella

Hi all,

I have seen few places where constructors are declared like this.

class A {
explicit A(){};
};

I can understand this,
class A {
explict A(int i){};
};

Can some one explain the need for explict in case 1 ?

Thanks
Ganesh
 
K

Karthik Kumar

Ganesh said:
Hi all,

I have seen few places where constructors are declared like this.

class A {
explicit A(){};
};

I can understand this,
class A {
explict A(int i){};
};

Can some one explain the need for explict in case 1 ?

Thanks
Ganesh

Short answer: None.

Long Answer:
I remember reading a thread about this very recently.
Search the google archives for one, may be within the last month.
 
J

John Harrison

Long Answer:
I remember reading a thread about this very recently.
Search the google archives for one, may be within the last month.

That thread was /of course/ started by the very same person as this thread.
I guess he didn't believe the answers he got that time so he's going to be
disappointed to get exactly the same answer this time.

john
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top