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/boos...
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 don’t 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 it’s 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@hetp.u-net.com
Best, -- Murilo Adriano Vasconcelos http://murilo.wordpress.com