Why not just incorporate this into the test above it instead of using static assert? After all, it shouldn't just compile, it should do the right thing at runtime, too.