------- Comment #12 from paolo dot carlini at oracle dot com 2010-08-10 23:48 ------- Jon, is this actually GB 99? Trivially adding something like (& co, likewise for shared_ptr):
template<typename _Tp, typename _Tp_Deleter> inline bool operator!=(const unique_ptr<_Tp, _Tp_Deleter>& __x, nullptr_t) { return __x.get() != nullptr; } appears to work. If you agree, I would even propose going ahead and adding the overloads, give them some testing in mainline. -- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC|jason at gcc dot gnu dot org|jwakely dot gcc at gmail dot | |com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42925