|
Boost Users : |
Subject: Re: [Boost-users] About naming of integer log in base 2
From: Murilo Adriano Vasconcelos (muriloufg_at_[hidden])
Date: 2010-07-21 17:49:12
Hi Paul,
> So I've added two ifs, but think that the design of the functions are
> better.
>
>
>
> [0] -
> https://svn.boost.org/trac/boost/browser/sandbox/SOC/2010/bits_and_ints/boost/integer/ilog2.hpp?rev=64198
>
>
>
> Looks more promising, but you have a typo in the error message ;-)
>
>
>
> retunrning -1",
>
>
>
Oops!
> and maybe you need to document some examples of using policies that dont
> bother to check or at least do so quietly (your original idea), just quietly
> return -1, produce a message and return -1, or message and then throw an
> exception?
>
>
>
> But maybe its a TODO ;-)
>
>
>
Thanks for you reply. It's a nice idea to document the examples.
You are also welcome to comment in this thread on Boost-Dev ML (
http://old.nabble.com/Bits-and-Ints%3A-Intention-Request-td29166075.html )
about my SoC project.
> Paul
>
>
>
> ---
>
> Paul A. Bristow
>
> Prizet Farmhouse
>
> Kendal, UK LA8 8AB
>
> +44 1539 561830, mobile +44 7714330204
>
> pbristow_at_[hidden]
>
Best,
-- Murilo Adriano Vasconcelos http://murilo.wordpress.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net