Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2003-04-03 10:30:14


On Thu, 03 Apr 2003 14:15:27 +0200, Gennaro Prota
<gennaro_prota_at_[hidden]> wrote:

>Now, for the gurus: this is the current interface of reference:
>
>class reference
>{
> friend class dynamic_bitset<Block, Allocator>;
>
> // the one and only non-copy ctor
> reference(dynamic_bitset& bs_, size_type bit_);

Please don't scold me about the use of the term "interface" here. Just
sloppy language.

>public:
> ...
> reference& operator=(const reference& j); // for b[i] = b[j]
> reference& operator|=(const reference& j); // for b[i] |= b[j]
> ...

In case this is confusing: the declarations and the corresponding
comments use the letter j with different meanings. I would have better
written:

   reference& operator=(const reference& rhs); // for b[i] = b[j]
   ...

Genny.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk