nvcc compatibility fix (static_assert)