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] MPL's "round" lambda
by Douglas Gregor other posts by this author
Nov 18 2002 3:51PM messages near this date
[boost] Re: MPL's "round" lambda | Re: [boost] MPL's "round" lambda
On Monday 18 November 2002 05:56 am, Aleksey Gurtovoy wrote:
>  If you are tired of angle brackets in your templates (no, it's not a TV
>  commercial :), may be you'll like this one:
> 
>      typedef eval<
>            count_if(
>                list(int,char,long,int)
>              , lambda(is_same(_,int))
>              )
> 
>          >::type res;
> 
>      BOOST_STATIC_ASSERT(res::value == 2);

Very cool indeed! We need to invent an award for the craziest use of obscure 
language features (you have my vote).

	Doug
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Aleksey Gurtovoy
=?iso-8859-1?Q?Terje_Sletteb=F8?=
Joel de Guzman
Dirk Gerrits
Peter Dimov
Peter Dimov
Dirk Gerrits
Douglas Gregor
David Abrahams

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