Merge #11071: Use static_assert(…, …) (C++11) instead of assert(…) where appropriate