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] type_traits: add_pointer behavior?
by John Maddock other posts by this author
Aug 19 2002 11:39AM messages near this date
Re: [boost] type_traits: add_pointer behavior? | [boost] 1.2.9 release - some libraries are still missing tests
>  Could we call the current add_pointer<> template addressof_type or
>  something, and supply an add_pointer which straightforwardly adds a '*' if
>  it's legal to do so?

That's more or less what it does now: everything become a T* except T& which
becomes T*.  I would find it even odder that add_pointer<T&> ::type was T&,
since the latter is clearly not a pointer, where as with
add_reference<T&> ::type the result is already a reference, and with
add_const <const T> ::type the result is already const.

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
David Abrahams
John Maddock

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