From: Daniel Frey (d.frey_at_[hidden])
Date: 2003-12-08 17:10:17
I added milestone 2 of the constant library to the files section. It is a
framework for representing constants like 'pi' with some advanced
auto-type-selection. Please have a look at the code if you are
interested. Some notes:
- I split the code into several files. I hope this helps to get an
overview about the different parts of the library.
- Unlike former version, explicit type selection is now done like this:
where T is the type you need. Implicit conversions are supported as
- The VC7.1 has not been tested, but it'll probably fail. At least the
former versions did. If you can make it work, please tell me what I
have to change. Tested are GCC 3.3.2 and Intel 7.1.
- Paul (and anyone interested in the interval library): Please check if
the constant library provides what you need. If you have questions,
I'll try to answer them. Have a look at the mappers, I hope they are
useful for you.
- The files in boost/ are the ones that will go into the library.
my_constants.hpp is a good example how users of the library will use
the library in their own project. example.cc shows how the constants
can be used. The constants 'pi', 'pi*pi' and 'sqrt(two)' will of course
go into appropriate headers, they are just provided as an example.
What is this good for? The library is not yet in shape for a formal
review. It needs boostification, documentation and testing. It is my hope
that this can be used as the base for providing math constants. If you
would like to download the current version, look at:
Any comments welcome.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk