commit | 664cdafb8ad7ccef531cb6bf7bd42752841f220f | [log] [tgz] |
---|---|---|
author | André Susano Pinto <andresp@google.com> | Wed May 20 11:11:07 2015 +0200 |
committer | André Susano Pinto <andresp@google.com> | Wed May 20 09:11:02 2015 +0000 |
tree | 5828a3a886478aca881838864037ec8f95a72b04 | |
parent | 5ca688b3da35ea2a8da6e915c503b12d4d814bb2 [diff] |
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-Commit-Position: refs/heads/master@{#9231}