Boost logo

Boost Users :

Subject: [Boost-users] Compilation errors with using Boost Interval types
From: Chidambaram Annamalai (quantumelixir_at_[hidden])
Date: 2010-08-09 11:49:29


I wanted to use the boost::numeric::interval<T> types for simple arithmetic
and elementary functions. I expected them to work out of the box (at least
for T=double). However, only arithmetic (+,-,*,/) works. I get name look up
errors when I try something like sin(..) or cos(..) of an Interval type.

The example with the compiler errors are here:

I tried grepping my global include directory for what the compiler reported
it couldn't find (cos_up, cos_down) and the only place it seems to be
defined in is:

[00:57][~]$ grep -iRl cos_up /usr/include/

And, including that file doesn't seem to help at all as you can see in the

Also on a related note, *none* of the examples here:
compile. I expected at least the examples to work out of the box but
they don't.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at