Boost logo

Boost :

From: Daniel Wallin (dalwan01_at_[hidden])
Date: 2004-01-31 12:06:20


Andy Little wrote:
> "David Abrahams" <dave_at_[hidden]> wrote in message
>>What is the reason for the trailing underscores?
>
>
> In case of pow_ to stop it name-clashing with pow(x,y), if 'using
> boost::mpl' ,using std. In case of root_ for similarity with pow.
> In case of reciprocal the underscore is very small. Thought 'power' might
> also clash with other names.
> But any suggestions appreciated.

This is not the "traditional" use of trailing underscores. Normally they
are used for keywords.

   int -> int_
   bool -> bool_

etc. MPL uses tons of names that clashes with names in std. This is a
problem for the user, not the library.

-- 
Daniel Wallin

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