So it's look like that it can accept strings and ints without problem.

And I really can't understand why it's accept only "static const string" constructions...
                

int does not implicitly convert to short. It does in the hardcoded version, because the compiler can prove that the value is between short.min and short.max.

Use to!short() to convert it to short.

Reply via email to