RE: [boost] Re: boost::any: explicit constructor?
by Glen Knowles other posts by this author
Feb 28 2004 6:27PM messages near this date
Re: [boost] Metrowerks 9.2 approaching 100% on Windows
|
RE: [boost] Re: boost::any: explicit constructor?
> I guess I don't understand the whole concept now. T* -> void* sounds
> like "narrowing", since it loses information. int -> long never loses
> information, so "widening" makes sense to me. What is the criterion?
This is why I like C++'s choice of base and derived, there's never any
confusion. You have the concepts of narrowing and widening correct but
backwards. You narrow a type to a more specific derived type and widen one
to a more general base type.
Glen
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Glen Knowles
David Bergman
Victor A. Wagner Jr.
David Bergman
Victor A. Wagner Jr.
|