static assert
use static assertation where suitable
Merge pull request #671 from cuda-geek/static_assert

Static assert