
"Andy Little" <andy@servocomm.freeserve.co.uk> writes:
BTW my plan is also to make a quaternion that is compatible with my Quan library:
http://quan.sourceforge.net/index.html
I did some test on complex quantities in a previous incarnation of Quan and there seemed to be no problems, so for instance one could do
typedef complex<resistance> impedance; complex<voltage> v; complex<current> i
impedance z = v / i;
This is of course an entirely practical example.
Without knowing the details of your library, a well-designed generic library usually defines non-intrusive concepts that allow any type to satisfy the requirements, given some additional traits and functions. There should be no need to write a new quaternion. -- Dave Abrahams Boost Consulting www.boost-consulting.com