I was wondering if it\'s possible to make my
class Time { public: Time(); explicit Time( const double& d);
You have to write/override an operator. In this case the cast-operator. Define a method
operator double() { return double_however_computed_from_your_time; };