Boost logo

Geometry :

Subject: Re: [geometry] extensions
From: Bruno Lalande (bruno.lalande_at_[hidden])
Date: 2012-02-08 04:40:37


Regarding lexical_cast => would probably be better to have that
encapsulated somewhere rather than having the same #ifdef at several places
of the code.

Regarding constants => So we assume that the other compilers will be clever
enough to figure out that it's a constant and make it static? If the TI
compiler is flawed enough not to manage constants as the standard states,
we shouldn't expect all the other compiles to go *beyond* the standard and
make a non-static variable static.

Also, Boost.Math already has those constants:

constants/constants.hpp: BOOST_DEFINE_MATH_CONSTANT(pi,
constants/constants.hpp: BOOST_DEFINE_MATH_CONSTANT(two_pi,
6.2831853071795864769252867665590057683943388015061, 0, 0)

If we can't reuse them for some reason (to be checked), we can at least see
what this BOOST_DEFINE_MATH_CONSTANT is about, it's purpose might be to
solve our problem, precisely.

Sorry these are just quick ideas, I don't have the time to dig more right


Geometry list run by mateusz at