by krapp · 5y ago · 0 comments
It should be possible to template a class that only accepts positive integers.
All your type traits/SFAINE/concepts/static_asserts happen at compile time, you can’t use them to do any checks on the value of a type, unless it’s a value available at compile time.