
2 Sep
2009
2 Sep
'09
7:11 p.m.
Phil Endecott wrote:
I've added this: ... and I seem to be getting much the same error.
How about also adding template <> struct interval_mutable_traits< std::pair<screen_coord_t,screen_coord_t> > { static inline void set(std::pair<screen_coord_t,screen_coord_t>& interval, direction_1d dir, screen_coord_t value) { if (dir==LOW) interval.first = value; else interval.second = value; } static inline std::pair<screen_coord_t,screen_coord_t> construct(screen_coord_t low_value, screen_coord_t high_value) { return std::pair<screen_coord_t,screen_coord_t> (low_value, high_value); } }; ???