[geos-devel] [UTF] envelope_class_test.cpp fixed for Boost 1.33

Mateusz Łoskot mateusz at loskot.net
Sun Mar 12 13:28:54 EST 2006


Mateusz Łoskot wrote:
> Mateusz Łoskot wrote:
>> Mateusz Łoskot wrote:
>> 
>>> The only change I had to make is to change version
>>> 
>>> // for Boost 1.34 #define BOOST_TEST_MAIN #include 
>>> <boost/test/unit_test.hpp>
>>> 
>>> to read
>>> 
>>> // for Boost 1.33 #define BOOST_AUTO_TEST_MAIN #include 
>>> <boost/test/auto_unit_test.hpp>
>>> 
>>> So, in order to enable users to use older and newer versions of
>>> Boost I suppose there may be some #ifdef's required.
>> 
>> 
>> I've just tested the version for Boost 1.33 above with Boost 1.34 
>> (CVS) and it's working. Does mean the header #include 
>> <boost/test/auto_unit_test.hpp> is present in 1.34 and compatible,
>> so no #ifdef's are required so far.
> 
> 
> 
> Hi,
> 
> I have bad news. Inspite of that solution above works with older and 
> newer Boost versions it's not recommended to use old-style verson for
> Boost 1.33.
> 
> Here is a small thread in which I'm asking how to procede:
> 
> http://thread.gmane.org/gmane.comp.lib.boost.user/17409
> 
> Gennadiy does not recommend the approach I revealed as working:
> 
> No - old names are depricated. You still could use it. But it's going
> to be removed in some future release. Boost 1.34 should be out pretty
> soon. You may want to wait till it's out and rely purely on new
> names.
> 
> Please, discuss a little how should we handle this issue?


Some thoughts about the problem.
May be we could provide following solution:
1. Include Boost UTF library (binary) into GEOS source tree and build
(link) tests with this library by default

2. Provide configure switch e.g. --with-own-boost
to enable user to use his own installation of boost instead of
UTF library from project tree.
Here, we should also provide checking for proper version of Boost.


Such solution would allow us to work with latest version of UTF - from
Boost 1.34 instead of legacy and incompatible with future releases -
Boost 1.33

Cheers
-- 
Mateusz Łoskot
http://mateusz.loskot.net



More information about the geos-devel mailing list