1 Feb 2004 03:37
Re: mpl functions, pow_, root_, reciprocal
David Abrahams <dave <at> boost-consulting.com>
2004-02-01 02:37:32 GMT
2004-02-01 02:37:32 GMT
"Andy Little" <andy <at> servocomm.freeserve.co.uk> writes: >> 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'. Many 'users' don't use using-declarations and won't appreciate having perfectly usable names uglified with extra underscores, or having names in mpl:: which don't follow the MPL conventions. > Its my problem. > Is the mpl namespace regarded as a 'user interface' ? If we're putting the names in mpl::, they should follow the same conventions as the rest of the library. -- -- Dave Abrahams Boost Consulting www.boost-consulting.com _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost(Continue reading)
>
> Oops sorry perhaps read 'undefined',' user defined' not implementation
> defined
My point was to say that you are proposing we add something to the
library, but you haven't shown us anything but a sketch of a few empty
metafunctions. How can anyone comment?
> Not to stay that way just havent had time to write some simple examples.
> (pow_<int_,int_> should be easy!) Could use one of my own but doesnt mean
> much to many -->
>
> The problem is I have specialised plus, minus, multiplies etc. for use in
> 'expression templates'. (think is right term).
> However it would be odd to put these in separate namespace.
?? Specializations can only go in the same namespace as the primary
template.
RSS Feed