Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2004-01-31 16:40:13


"Daniel Wallin" <dalwan01_at_[hidden]> wrote in message
news:401BE08C.7070604_at_student.umu.se...
> 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.

I am attempting to write a libaray for 'users'. Its my problem.
Is the mpl namespace regarded as a 'user interface' ?

regards
Andy Little


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