:
ms = a;
my_struct& operator ()(double)
my_struct& operator ()(double&)
my_struct& operator ()(const double&)
double. . :
my_struct& operator=(const my_struct &ms)
, const- my_struct. , ( double:
my_struct(double)
my_struct(double&)
my_struct(const double&)
, . , .
, , . , double , , . , -
my_struct(<<something that can be converted from a double>>)
explicit. , :
my_struct(char)
double char ( , , , ). (, ) , , .
, , explicit, , . explicit . :
explicit my_struct(char)
double char. ; :
char x = 'a';
my_struct ms;
ms = x;
my_struct char, . , ( double) ( double). , .