j
k
j a
j l
template<class T> bool operator <(const shared_ptr<T> &lhs, const shared_ptr<T> &rhs) { if (!lhs && !rhs) return false; return *lhs < *rhs; } }
Sorry, I meant "if (!lhs || !rhs)".
Back to the thread
Back to the list