Results 1 to 2 of 2
Somewhere I have seen in class constructors used 'explicit' key word. Can you please explain on this.
Example:
class CType{
explicit SimpleString(char* data = "");
};...
- 07-14-2009 #1Just Joined!
- Join Date
- May 2009
- Posts
- 21
About explicit key word
Somewhere I have seen in class constructors used 'explicit' key word. Can you please explain on this.
Example:
class CType{
explicit SimpleString(char* data = "");
};
- 07-14-2009 #2Just Joined!
- Join Date
- Jul 2009
- Location
- India
- Posts
- 24
Here is a link What does the explicit keyword in C++ mean? - Stack Overflow .Hope this is helpful


Reply With Quote