Remove COMPILE_ASSERT and use static_assert everywhere
COMPILE_ASSERT is no longer needed now that we have C++11's static_assert. R=aluebs@webrtc.org, andrew@webrtc.org, hellner@chromium.org, henrike@webrtc.org Review URL: https://webrtc-codereview.appspot.com/39469004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@8058 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -14,14 +14,13 @@
|
||||
|
||||
#include "testing/gmock/include/gmock/gmock.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
#include "webrtc/base/compile_assert.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_format_vp8.h"
|
||||
#include "webrtc/modules/rtp_rtcp/source/rtp_format_vp8_test_helper.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
|
||||
#define CHECK_ARRAY_SIZE(expected_size, array) \
|
||||
COMPILE_ASSERT(expected_size == sizeof(array) / sizeof(array[0]), \
|
||||
check_array_size);
|
||||
#define CHECK_ARRAY_SIZE(expected_size, array) \
|
||||
static_assert(expected_size == sizeof(array) / sizeof(array[0]), \
|
||||
"check array size");
|
||||
|
||||
namespace webrtc {
|
||||
namespace {
|
||||
|
||||
Reference in New Issue
Block a user