Boost logo

Boost :

Subject: [boost] [local] this_ or _this?
From: Lorenzo Caminiti (lorcaminiti_at_[hidden])
Date: 2011-04-03 14:13:16

Hello all,

Boost.Local uses a special name `this_` to access the object `this`
bound from the enclosing scope. Shall this name be `this_` or `_this`
according to Boost practices?

struct c {
    void g(int x) { ... }
    void f() {
        void BOOST_LOCAL_FUNCTION_PARAMS( (int x) (bind this) ) {
            this_->g(x); // <<<<<<<<< Shall this be `_this->g(x);` instead?

In particular, some library uses _ postfix for statements like
mpl::if_ (not mpl::_if) while other uses _ prefix for variables like
phoenix::local_names::_f (not local_names::f_).

Thanks a lot.


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