2011/4/9 Dave Abrahams <dave@boostpro.com>
At Sat, 9 Apr 2011 20:54:48 -0300,
Murilo Adriano Vasconcelos wrote:
>
> 2011/4/9 Peter Foelsche <foelsche@sbcglobal.net>
>
> > There is no
> >
> > boost::mpl::abs
> >
> > Peter
> >
>
>
> There is a version of mpl::abs here:
> https://svn.boost.org/svn/boost/sandbox/SOC/2010/bits_and_ints/boost/integer/static_abs.hppwhich
> was done for a library I implemented last year.
>
> I want to ask for the MPL's maintainers to put it on the trunk.

At Sat, 9 Apr 2011 16:36:03 -0700,
Peter Foelsche wrote:
>
> It is a major annoyance that these arrithmetic operations return a
> different type than the input!
> I mean I input boost::mpl::long_ and I get a boost::mpl::integral_c

I suggest that you open tickets at http://svn.boost.org/trac/boost.
Maintenance of MPL is not very active, so I can't promise much, but if
you don't open a ticket, your request will almost certainly be
forgotten.

Regards,

--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Actually, that library have many (approximately 20) metafunctions that can be added to MPL in the Bitwise Operations [0] section.

One short documentation for these metafunctions can be viewed here [1]. 

[0] - http://www.boost.org/doc/libs/1_46_1/libs/mpl/doc/refmanual/bitwise-operations.htm
[1]  - https://svn.boost.org/svn/boost/sandbox/SOC/2010/bits_and_ints/libs/integer/doc/html/boost_integer/bits_and_ints.html#boost_integer.bits_and_ints.overview

If there is interest in doing that (but not time from maintainers), I can port these metafunctions to MPL library.

Regards
--
Murilo Adriano Vasconcelos
http://murilo.wordpress.com