|
Boost : |
Subject: Re: [boost] [review][mp11] Formal review of Mp11
From: Joaquin M López Muñoz (joaquinlopezmunoz_at_[hidden])
Date: 2017-07-17 11:32:05
El 17/07/2017 a las 13:05, Peter Dimov via Boost escribió:
>
> To expand on this a bit:
>
> There are, in general, two main modes of use of Mp11, serving two
> audiences.
> One is the "easy mode", where one includes <boost/mp11.hpp>, combines that
> with `using namespace boost::mp11;`, then goes ahead using mp_this and
> mp_that
> without qualification. This serves (a) people who play with
> metaprogramming
> in short test cases, (b) people who have a need for a metaprogram in a
> .cpp file
> (or an internal header file not meant for public consumption), whether
> library or
> application one.
These people would be equally served by instructing them to
namespace mp=boost::mp11;
and then go ahead with mp::this and mp::that.
Joaquín M López Muñoz
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk