------- Comment #4 from jwakely dot gcc at gmail dot com 2010-02-01 17:22 ------- there is this comparison function:
template<class T1, class D1, class T2, class D2> bool operator!=(const unique_ptr<T1, D1>& x, const unique_ptr<T2, D2>& y); What should T2 and D2 be deduced as, in the conversion from nullptr_t to unique_ptr<T2, D2> ? Or to put it another way: unique_ptr is not a type, it's a template. So what type do you mean when you say "build an empty unique_ptr object" ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42925