From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2002-04-29 21:01:11
"Gennadiy Rozental" <rogeeff_at_[hidden]> wrote in message
> "Andrei Alexandrescu" <andrewalex_at_[hidden]> wrote in message
> > 3. Put the specialized trait in a separate file, and ask everyone who
> > to use Widget to include that file. This is a discipline-based approach
> > therefore is error-prone.
> Here I disagree with you. Even if you have a third party Widget class (in
> other case you just put specialization there) you could always provide
> WidgetPtr.h header and use it everywhere instead of Widget.h. I do not see
> big problem with that.
I'd agree if the code would not compile. But there is a big problem: whether
you include widget.h or widgetptr.h, the code compiles. Might even link and
run in certain cases! Therefore, the error introduced would be very very
I see the problem as huge, not big.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk