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: Re: Re: [optional] update
by Hamish Mackenzie other posts by this author
Sep 12 2003 7:53AM messages near this date
[boost] Re: Re: Re: [optional] update | [boost] Re: [optional] update
On Fri, 2003-09-12 at 04:16, Eric Friedman wrote:
>  Hamish Mackenzie wrote:
>  > On Thu, 2003-09-11 at 12:11, Markus Werle wrote:
>  > > Probably overloading using boost::enable_if is a solution in this case.
>  >
>  > Good call that makes it much nicer.
>  >
>  > Is there something similar for using with template classes?  Something
>  like
>  >
>  > template< typename T >
>  > class my_class : enable_if< is_same< T, x >::value >
>  > {
>  > };
>  
>  Isn't this written as
>  
>    template <>
>    class my_class<x>
>    {
>    };
>  
>  ?

Yes, that was a bad example replace the is_same< T, x > ::value with a
more complex expression.

Hamish

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Fernando Cacciola
Fernando Cacciola
Fernando Cacciola
Mat Marcus

Guillaume Melquiond

Mat Marcus
Eric Friedman
Hamish Mackenzie
Fernando Cacciola
Eric Friedman
Markus Werle
Hamish Mackenzie
Mat Marcus
Mat Marcus
Hamish Mackenzie
Fernando Cacciola
Hamish Mackenzie
Fernando Cacciola
David Abrahams
Eric Friedman
Fernando Cacciola
Hamish Mackenzie
Russell Hind
Hamish Mackenzie
Joel de Guzman

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