
23 Jan
2007
23 Jan
'07
8:31 a.m.
Joaquín Mª López Muñoz <joaquin <at> tid.es> writes:
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