22 Aug
2006
22 Aug
'06
9:14 a.m.
chun ping wang wrote:
Is there a nice work around this?
Yes: if(boost::is_floating_point<T>::value) return &glVertex2d; else return &glVertex2i; and the same goes for the other ternary. This has nothing to do with boost. The two options in a ternary have to be of the same type. You could also cast them, but that would only be shorter with appropriate typedefs. Jens