
Steven Watanabe wrote:
AMDG
Simonson, Lucanus J wrote:
Joel also expressed the opinion that generic programming could allow the library to use floating point or integer arithmetic for coordinates. I remain skeptical of that. Also, because the coordinate type template parameter would go on practically everything, I fear it would become onerous to the user (and me.)
How about giving a coordinate type template parameter to everything, but also providing typedefs for all the specializations with the default coordinate type?
It's not just the coordinates. The essence of GP is that you can be able to use class X and class Y from different libraries in your library as long as they both model a certain concept, C. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net