G
Ganesh Gella
Hi All,
While going through xalan's XSLT source code, I came across few
constructors which are qualified as "explicit". These constructors are
empty constructors.
I read about the use of explict when constructors accept single
argument and it is to avoid accidental conversion from parameter type
to class type.
I am unable to find the significance of explicit keyword for a
constructor that does not accept any arguments all.
Can any of you throw more light on this please ?
For example,
class XalanDOMString
{
explicit XalanDOMString();
};
While going through xalan's XSLT source code, I came across few
constructors which are qualified as "explicit". These constructors are
empty constructors.
I read about the use of explict when constructors accept single
argument and it is to avoid accidental conversion from parameter type
to class type.
I am unable to find the significance of explicit keyword for a
constructor that does not accept any arguments all.
Can any of you throw more light on this please ?
For example,
class XalanDOMString
{
explicit XalanDOMString();
};