Boost logo

Boost Users :

Subject: [Boost-users] [interval] self defined base types
From: Sven Heithecker (sven.heithecker_at_[hidden])
Date: 2010-11-20 19:49:54


Hi !

I am currently doing some experiments with boost::interval and self-defined
base types. I have problems with the rounding modes. I read the according
documentation about the rounding (and checking) stuff, but unfortunately I did
not unterstand it completely.

So, what I want for now is to use intervals without any special rounding mode.
Maybe I will implement correct rounding sometimes later...

I expect I have to declare the interval type as follows:

using namespace boost::numeric;
using namespace interval_lib;
// mutable_t is my base type
typedef interval <mutable_t,[policy_no_rounding]> I;

The problem is: what to put in [policy_no_rounding] ?

Regards, Sven

-- 
Sven Heithecker
GPG Fingerprint: 527F 06C2 BF51 96CE DFF7 CC89 1A6B DFD5 BEC2 02A6Hi !

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