M
Marcelo Pinto
Hi all,
In practice, what is the diference between a default constructor and
an explicit default constructor?
class Ai
{
public:
Ai() {}
};
class Ae
{
public:
explicit Ai() {}
};
Another question. I read in another thread that, if you provide
explicitly one constructor, the implementation shall not implicitly
declare/define the default constructor and the copy constructor
(12.1), but I couldn't find where the standard stated this rule. Is it
really true? Where is it stated?
Thanks,
Marcelo Pinto.
In practice, what is the diference between a default constructor and
an explicit default constructor?
class Ai
{
public:
Ai() {}
};
class Ae
{
public:
explicit Ai() {}
};
Another question. I read in another thread that, if you provide
explicitly one constructor, the implementation shall not implicitly
declare/define the default constructor and the copy constructor
(12.1), but I couldn't find where the standard stated this rule. Is it
really true? Where is it stated?
Thanks,
Marcelo Pinto.