I was wondering if it\'s possible to make my
class Time { public: Time(); explicit Time( const double& d);
You should declare operator double () const to make Time convertible to double. There is no way to overload the assignment operator for primitive types.
operator double () const
Time
double