Boost logo

Boost :

Subject: Re: [boost] [local] this_ or _this?
From: Joshua Juran (jjuran_at_[hidden])
Date: 2011-04-03 16:12:47


On Apr 3, 2011, at 12:22 PM, Emil Dotchevski wrote:

> On Sun, Apr 3, 2011 at 11:13 AM, Lorenzo Caminiti <lorcaminiti_at_[hidden]
> > wrote:
>> 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?
>
> Names with leading underscore should be avoided, they may be used by
> the compiler for its own needs.

A name beginning with an underscore not followed by a capital letter
is allowable at non-global scope (provided it doesn't contain two
consecutive underscores). Such names include _, _1, and _this.

Josh


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