
31 Jan
2004
31 Jan
'04
5:06 p.m.
Andy Little wrote:
"David Abrahams" <dave@boost-consulting.com> 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