Replace template_util.h with C++14 STL methods
Bug: None Change-Id: Ib24889db4f452353afab816af4f9618b2767021f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/160760 Commit-Queue: Steve Anton <steveanton@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29942}
This commit is contained in:
@ -97,13 +97,12 @@ int Multiply(int a, int b) {
|
||||
|
||||
// Try to catch any problem with scoped_refptr type deduction in rtc::Bind at
|
||||
// compile time.
|
||||
#define EXPECT_IS_CAPTURED_AS_PTR(T) \
|
||||
static_assert(is_same<detail::PointerType<T>::type, T*>::value, \
|
||||
"PointerTyp" \
|
||||
"e")
|
||||
#define EXPECT_IS_CAPTURED_AS_SCOPED_REFPTR(T) \
|
||||
static_assert( \
|
||||
is_same<detail::PointerType<T>::type, scoped_refptr<T>>::value, \
|
||||
#define EXPECT_IS_CAPTURED_AS_PTR(T) \
|
||||
static_assert(std::is_same<detail::PointerType<T>::type, T*>::value, \
|
||||
"PointerType")
|
||||
#define EXPECT_IS_CAPTURED_AS_SCOPED_REFPTR(T) \
|
||||
static_assert( \
|
||||
std::is_same<detail::PointerType<T>::type, scoped_refptr<T>>::value, \
|
||||
"PointerType")
|
||||
|
||||
EXPECT_IS_CAPTURED_AS_PTR(void);
|
||||
|
||||
Reference in New Issue
Block a user