Boost logo

Boost :

Subject: Re: [boost] C++11 Metaprogramming
From: Olivier Grant (olivier.grant_at_[hidden])
Date: 2012-04-01 11:39:12

Hi Dave,

That's going to be an interesting presentation. Here is a small piece of
code that allows to generate a traits structure that determines if a call
can be made on an object with a specific function name and specific
arguments and return value :
(compile with : g++ -std=c++0x -Wall -o has_callable has_callable.cpp)

This was not possible in C++03, or at least not completely possible, and
the code is much simpler with C++11 for the cases where it was possible as



On Sun, Apr 1, 2012 at 3:12 AM, Dave Abrahams <dave_at_[hidden]> wrote:

> Hi All,
> I am on the C++Now 2012 schedule giving a talk on metaprogramming in
> C++11, which is really just supposed to be an overview of the state of
> the art. I am just at the beginnings of my research for this
> presentation, having learned a few things and done a few experiments,
> and it seemed to me foolish not to ask the Boost community for its
> insights. I'm sure y'all have come up with many neat tricks and
> techniques. If you'd care to share them here, that would be much
> appreciated.
> TIA,
> --
> Dave Abrahams
> BoostPro Computing
> _______________________________________________
> Unsubscribe & other changes:

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