Boost logo

Boost Users :

From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2007-01-23 10:31:39


Joaquín Mª López Muñoz <joaquin <at> tid.es> writes:

> http://lists.boost.org/boost-users/2005/12/16087.php

Thanks for the insight.
If only boost::tuples::element<N,Tuple>::type was a documented feature ...
The inheritance problem you describe is another proof that inheritance
should not be used to extend interfaces in generic code and that
containment is the superior approach (religious flamewars or very
good arguments against this appreciated).

> And the other solution is to write a user-defined extractor as
> explained in the aforementioned thread.

Your post to comp.std.c++ had no response (thread "Pointer to member
contravariance and template non-type arguments")
Do you have any new insight on DR or not DR?

Markus


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net