Re: RE: Re: MTL and boost

Eyal Fink <[email protected]>
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
Thanks!
I still had problem with iterator_adaptor after replacing the include 
files, but this problem is currently solved by including first the mtl 
and than the boost files.

König, Oliver wrote:
> Hi,
> 
> There is a  quite easy patch to solve this problem:
> Include the limits header from boost in mtl.h.
> 
> Code to be modified at the beginning of mtl.h: 
> --------------------
> #include "boost/limits.hpp"
> // #include "mtl/mtl_limits.h"
> --------------------
> 
> This and inclusion of the necessary headers should do it...
> Greetings
> ok
> 
> Oliver Koenig
> Center of Structure Technologies
> Institute of Mechanical Systems
> Leonhardstr. 27, LEO C4
> ETH Zurich
> CH-8092 Zurich
> WWW: http://www.imes.ethz.ch/st
> 
> 
> 
> -----Original Message-----
> From: Eyal Fink [mailto:[email protected]] 
> Sent: Montag, 2. Dezember 2002 10:21
> To: [email protected]
> Subject: MTL: Re: MTL and boost
> 
> I am trying to use BOOST and MTL in my project and I have conflicts in 
> the headers files (boost/details/limits.h and mtl/mtl_limits.h).
> I known that MTL 3 is supposed to be part of BOOST so probably these 
> problems has been solved someplace. Does anyone has a patch or a version 
> in which the problem does not exists?
> I am using boost 1.2.8 and MTL 2.1.2.21
> 
> the details of the conflict (the first one):
> 
> /cygdrive/c/cvs/include/mtl/mtl_limits.h:37: multiple definition of 
> `enum float_round_style'
> /cygdrive/c/cvs/include/mtl/mtl_limits.h:37: redefinition of `enum 
> float_round_style round_indeterminate'
> /cygdrive/c/cvs/include/boost/detail/limits.hpp:61: `enum 
> float_round_style round_indeterminate' previously defined here
> 
> _______________________________________________
> This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
> _______________________________________________
> This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/


_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.