[Issue 6023] std.random.uniform and std.bigint.BigInt compilation error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat May 19 18:37:09 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6023
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2012-05-19 18:38:45 PDT ---
Original sample code cannot yet compile, but error messages are different.
C:\dmd2\src\phobos\std\random.d(1045): Error: template std.random.uniform does
not match any function template declaration
C:\dmd2\src\phobos\std\random.d(1043): Error: template std.random.uniform
cannot deduce template function from argument types
!("[]",igInt,BigInt,MersenneTwisterEngine!(uint,32,624,397,31,-1727483681u,11,7,-1658038656u,15,-272236544u,18))(BigInt,BigInt,MersenneTwistrEngine!(uint,32,624,397,31,-1727483681u,11,7,-1658038656u,15,-272236544u,18))
C:\dmd2\src\phobos\std\random.d(1045): Error: template instance
uniform!("[]",BigInt,BigInt,MersenneTwisterEngine!(uint,32,624,397,31-1727483681u,11,7,-1658038656u,15,-272236544u,18))
errors instantiating template
test.d(8): Error: template instance std.random.uniform!("[]",BigInt,BigInt)
error instantiating
test.d(8): Error: template std.bigint.BigInt.__ctor does not match any function
template declaration
C:\dmd2\src\phobos\std\bigint.d(82): Error: template std.bigint.BigInt.__ctor
cannot deduce template function from argument types !()_error_)
Because BigInt type is not integral.
import std.traits;
pragma(msg, isIntegral!BigInt); // pritns false
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list