27 Sep
2006
27 Sep
'06
7:01 p.m.
"Johan Nilsson" <r.johan.nilsson@gmail.com> skrev i meddelandet news:efdm0b$52f$1@sea.gmane.org... [snip]
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