How to make a Currency class from std.BigInt?
RuZzz via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Feb 14 08:38:13 PST 2015
The next version https://bpaste.net/show/dc3c5f10f2ca
I use https://github.com/dsimcha/Rational/blob/master/rational.d
I want to do it:
auto c = new Currencies!Rational.rational.Rational!(BigInt);
where Rational.rational.Rational it is std.rational.Rational
I get the error:
Error: template instance Currencies!(Rational) does not match
template declaration Currencies(T)
More information about the Digitalmars-d-learn
mailing list