Boost logo

Boost :

Subject: Re: [boost] [GSoC][MPL11] Post C++Now update
From: David Stone (david_at_[hidden])
Date: 2014-05-19 22:05:43

Minor addition to my previous post:

By converting a type to a value by way of the type<> variable template, you
can mix types and values interchangeably. That second example I gave could
also be written as

static_assert(count(odd{}, list(1_udl, 2_udl, 3_udl)) == 2, "Incorrect
count of odd numbers.");

and everything would work as expected. It is these types of interfaces that
allow seamless transitions between compile-time and run-time computations.

Boost list run by bdawes at, gregod at, cpdaniel at, john at