
1 Sep
2006
1 Sep
'06
8:13 a.m.
"Matthias Troyer" <troyer@itp.phys.ethz.ch> wrote in message news:3BF6C3DF-9F29-4CCE-BF04-D97B8CADFE83@itp.phys.ethz.ch...
Can't you just use std::complex<T> as value type in quan?
You can do: quan::resistance<std::complex<> >:kR x; but its preferable to do: quan::complex<quan::resistance::kR> x; I tried specialising/ overloading std::complex for quantities before but its more work than just doing my own version, which will work with numeric types and quantity types anyway.... and complex<double>(1) * 2; won't fail to compile in my version ;-) regards Andy Little