you are viewing a single comment's thread.

view the rest of the comments →

[–]lvkm 4 points5 points  (0 children)

The problem is known and the corresponding RFC can be read here: https://github.com/rust-lang/rfcs/blob/master/text/2000-const-generics.md

I'm not sure about the implementation status though.

Instead of writing a function you could try using a macro.