Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2005-11-28 09:35:54

On Mon, 28 Nov 2005 16:09:47 +0200, Peter Dimov wrote
> >> template<class time_zone_type>
> >> static time_type local_time(shared_ptr<time_zone_type> tz_ptr);
> Why is tz_ptr templated on time_zone_type? Isn't a specific base
> class required from time_zone_type?

local_date_time does have a polymorphic base for time zone so that at runtime
you can use posix_time_zone, custom_time_zone, interchangeably. However,
didn't seem necessary to depend on a specific time zone type or even a base
class in this code -- hence the template.


Boost list run by bdawes at, gregod at, cpdaniel at, john at