Replace assert() with static_assert() if the condition is evaluatable at
compile time.
The condition of static_assert() is evaluated at compile time which is safer and
more efficient.
Note that static_assert() requires C++11.
The changes were generated by the misc-static-assert ClangTidy check by alexfh@google.com
R=tommi@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/51019004
Cr-Original-Commit-Position: refs/heads/master@{#9231}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 664cdafb8ad7ccef531cb6bf7bd42752841f220f
5 files changed