Created on 2008-01-10.00:00:00 last changed 171 months ago
Proposed resolution:
In [function.objects], header <functional> synopsis replace:
template<class R, class... ArgTypes> bool operator==(const function<R(ArgTypes...)>&,unspecified-null-pointer-typenullptr_t); template<class R, class... ArgTypes> bool operator==(unspecified-null-pointer-typenullptr_t , const function<R(ArgTypes...)>&); template<class R, class... ArgTypes> bool operator!=(const function<R(ArgTypes...)>&,unspecified-null-pointer-typenullptr_t); template<class R, class... ArgTypes> bool operator!=(unspecified-null-pointer-typenullptr_t , const function<R(ArgTypes...)>&);
In the class function synopsis of [func.wrap.func] replace
function(unspecified-null-pointer-typenullptr_t); ... function& operator=(unspecified-null-pointer-typenullptr_t);
In [func.wrap.func], "Null pointer comparisons" replace:
template <class R, class... ArgTypes> bool operator==(const function<R(ArgTypes...)>&,unspecified-null-pointer-typenullptr_t); template <class R, class... ArgTypes> bool operator==(unspecified-null-pointer-typenullptr_t , const function<R(ArgTypes...)>&); template <class R, class... ArgTypes> bool operator!=(const function<R(ArgTypes...)>&,unspecified-null-pointer-typenullptr_t); template <class R, class... ArgTypes> bool operator!=(unspecified-null-pointer-typenullptr_t , const function<R(ArgTypes...)>&);
In [func.wrap.func.con], replace
function(unspecified-null-pointer-typenullptr_t); ... function& operator=(unspecified-null-pointer-typenullptr_t);
In [func.wrap.func.nullptr], replace
template <class R, class... ArgTypes> bool operator==(const function<R(ArgTypes...)>& f,unspecified-null-pointer-typenullptr_t); template <class R, class... ArgTypes> bool operator==(unspecified-null-pointer-typenullptr_t , const function<R(ArgTypes...)>& f);
and replace
template <class R, class... ArgTypes> bool operator!=(const function<R(ArgTypes...)>& f,unspecified-null-pointer-typenullptr_t); template <class R, class... ArgTypes> bool operator!=(unspecified-null-pointer-typenullptr_t , const function<R(ArgTypes...)>& f);
N2461 already replaced in [func.wrap.func] it's originally proposed (implicit) conversion operator to "unspecified-bool-type" by the new explicit bool conversion, but the inverse conversion should also use the new std::nullptr_t type instead of "unspecified-null-pointer- type".
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-10-21 18:28:33 | admin | set | messages: + msg3713 |
2008-01-10 00:00:00 | admin | create |