Index: base/bind_internal.h |
diff --git a/base/bind_internal.h b/base/bind_internal.h |
index 1cb1684d7259f42c6cb1d937e3b2ab6fc5eee406..5e6c8bee74560a41b16ab2e5acaf6bee2e04f6d7 100644 |
--- a/base/bind_internal.h |
+++ b/base/bind_internal.h |
@@ -313,8 +313,8 @@ struct InvokeHelper<true, ReturnType, Runnable, ArgsType> { |
// WeakCalls are only supported for functions with a void return type. |
// Otherwise, the function result would be undefined if the the WeakPtr<> |
// is invalidated. |
- COMPILE_ASSERT(is_void<ReturnType>::value, |
- weak_ptrs_can_only_bind_to_methods_without_return_values); |
+ static_assert(is_void<ReturnType>::value, |
+ "weak_ptrs_can_only_bind_to_methods_without_return_values"); |
}; |
#endif |