Simen kjaeraas wrote:
Bounded!(int, 1, 5)[] myArr;myArr ~= 1; // Compile-time error: int is not implicitly castable to Bounded!(int, 1, 5)myArr ~= Bounded!(int, 1, 5)( 1 ); // Works perfectly
Yes, that's it.
Simen kjaeraas wrote:
Bounded!(int, 1, 5)[] myArr;myArr ~= 1; // Compile-time error: int is not implicitly castable to Bounded!(int, 1, 5)myArr ~= Bounded!(int, 1, 5)( 1 ); // Works perfectly
Yes, that's it.