Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2002-05-03 12:49:22

"Gennadiy Rozental" <rogeeff_at_[hidden]> wrote in message
> [...]
> 1. OptionallyInherit need default constructor
> 2. What to do with smart_ptr( stored_type const& )?
> 3. What to do with swap? Empty classes are not parents anymore
> and can't convert argument. Was inforced to move swap into
> OptionallyInherit. Now empty classes does not really need them.
> 4. As well as any other constructors. But this means that we lost
> conertability checks. For example smart_ptr with disallow_convertion
> will perfectly convert to allow conversion. The same this any other
> undersirable conversion.

I see how c'tors are a problem all around. I tried suggesting some
alternatives, but the problem is knowing which policies got inherited.
I'm wondering if the OptionallyInherit strategy can be made to work.


Boost list run by bdawes at, gregod at, cpdaniel at, john at