Yes, I know about this trick, there is also static_assertions crate that provides nice wrapper around this or similar trick.
But it would be great to have it inside std
or compiler.
Yes, I know about this trick, there is also static_assertions crate that provides nice wrapper around this or similar trick.
But it would be great to have it inside std
or compiler.