$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Dave Abrahams (abrahams_at_[hidden])
Date: 2000-04-29 09:47:44
on 4/29/00 6:18 AM, John Maddock at John_Maddock_at_[hidden] wrote:
>
> Noet that defining BOOST_NO_OPERATORS_IN_NAMESPACE places requirements on
> users of operators.hpp: they will need to use something like:
>
> namespace boost{
>
> class X : public boost::less_than_comparable<X>
> {
> public:
> #ifdef BOOST_NO_OPERATORS_IN_NAMESPACE
> bool operator < (const X& x)const;
> #else
> friend bool operator < (const X&,const X& x);
> #endif
> };
Since when? The way I designed BOOST_NO_OPERATORS_IN_NAMESPACE to work,
usage should be transparent for all users. In fact, it looks like the
BOOST_NO_OPERATORS_IN_NAMESPACE case above is the way I originally designed
it to work. So, couldn't all users portably rely on that technique (member
operators?)
-Dave