diff options
Diffstat (limited to 'base/template_util.h')
-rw-r--r-- | base/template_util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/template_util.h b/base/template_util.h index e48af91..66e6a61 100644 --- a/base/template_util.h +++ b/base/template_util.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -37,6 +37,9 @@ template <class T> struct is_non_const_reference : false_type {}; template <class T> struct is_non_const_reference<T&> : true_type {}; template <class T> struct is_non_const_reference<const T&> : false_type {}; +template <class T> struct is_void : false_type {}; +template <> struct is_void<void> : true_type {}; + namespace internal { // Types YesType and NoType are guaranteed such that sizeof(YesType) < |