On 19/01/11 09:44, Andre Massing wrote: > Den 18.01.11 21.46, skrev Garth N. Wells: >> >> >> On 18/01/11 20:28, Florian Rathgeber wrote: >>> Hi, >>> >>> Just a sneak preview: when using the current boost release 1.45.0 (which >>> isn't packaged on the major distributions yet) DOLFIN build breaks: >>> >>> In IntersectionOperatorImplementation there are conflicts with >>> boost::optional and the >>> error: dereferencing pointer \u2018<anonymous>\u2019 does break >>> strict-aliasing rules >>> is thrown (boost/optional/optional.hpp 317, 424) >>> >>> It works using gcc 4.5 though, hence it shouldn't be much of a problem >>> (unless of course you want to use CUDA: nvcc isn't compatible to gcc >>> 4.5). >>> >> >> Thanks - useful to be proactive in resolving issues like this. >> >> It looks like boost::optional is being used as a bit of sugar. >> >> Andre: can it be easily removed? > > It it actually used by the CGAL search tree and as such part of the CGAL > code. I wrapped it such that it is not visible in the upper layers but > as long as we want to have the "find any intersected entity" > functionality via CGAL it is unfortunately not possible to get rid of > boost::optional. >
OK. >From a quick search, it seems that the problem is a gcc 4.4 bug. I guess we can just leave it for the time being (disabling -Werror should allow code to compile), and wait to see if any major distros have Boost 1.45 + gcc 4.4. Garth > -- > Andre > > >> >> Garth >> >>> Florian >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~dolfin >> Post to : [email protected] >> Unsubscribe : https://launchpad.net/~dolfin >> More help : https://help.launchpad.net/ListHelp >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~dolfin >> Post to : [email protected] >> Unsubscribe : https://launchpad.net/~dolfin >> More help : https://help.launchpad.net/ListHelp > > _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : [email protected] Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp

