ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
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.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved