serge-sans-paille/frozen

Warning concerning a missing constexpr

tetsuhaut opened this issue · 3 comments

In file include/frozen/random.h, line 55,

if(modulus != 0)

should read

if constexpr (modulus != 0)

I tried to make a pull request but couldn't due to a 403 error.

frozen is written in c++14 where if constexpr is not supported. I'll use another approach.

Can you confirm #128 fixes your issue? Thanks!

Works great :)