Boost logo

Boost :

Subject: Re: [boost] Interesting article on stack-based TMP
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-10-22 09:07:39


On 22/10/12 14:14, Julien Nitard wrote:
> Hi All,
>
> That article came out of reddit C++ section:
>
> http://pubby8.wordpress.com/2012/10/15/stack-based-template-metaprogramming-in-c-11/
>
> It looks like TMP made easy (finally !). I am not that sure it is
> though and was wondering if anybody had any comments on it.

It's just an evaluator for reverse polish notation.

You can type
evaluate_rpn(f, g, x)
instead of
f(g(x))
(assuming f and g have fixed arities of 1 which the system is informed of)

hardly a revolution.

I seriously doubt it makes debugging easier, and it definitely will only
make compilation slower.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk