$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] shared_ptr to object in stl set container?
From: Igor R (boost.lists_at_[hidden])
Date: 2011-12-13 05:16:16
> Â Â Â Â 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)".