
27 Sep
2006
27 Sep
'06
7:01 p.m.
"Johan Nilsson"
I find the latter a bit verbose to use, but I guess simple wrappers could be added:
---- template<...> std::basic_istream<...>& operator>>(std::basic_istream<...>& istr, time_of_day& tod) { time_duration td; istr >> tod;
Well, that was obviously a typo. Should be: time_duration td; istr >> td; tod = td; // might throw return istr; } / Johan