
"David Abrahams" <dave@boost-consulting.com> wrote in message news:87d5aim3d8.fsf@pereiro.peloton...
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.
Without knowing the details of Your library....etcetera... One way or another, presenting Maxwells Equations in the form of physical quantities is a goal of Quan. Of course whether it has a practical use is another matter :-) regards Andy Little