Subject: [Boost-bugs] [Boost C++ Libraries] #9386: Compilation error with polygon and multi_array
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-13 18:52:50
#9386: Compilation error with polygon and multi_array
---------------------------------+----------------------
Reporter: voodooattack@⦠| Owner: ljsimons
Type: Bugs | Status: new
Milestone: To Be Determined | Component: polygon
Version: Boost 1.54.0 | Severity: Problem
Keywords: polygon multi_array |
---------------------------------+----------------------
With this piece of code:
{{{
#include <boost/multi_array.hpp>
#include <boost/polygon/polygon.hpp>
int main()
{
typedef boost::polygon::polygon_45_with_holes_data<int> polygon;
typedef boost::polygon::polygon_traits<polygon>::point_type point;
point centroid;
polygon poly;
boost::polygon::center(c.centroid, c.poly);
}
}}}
If you include the headers in the following order:
{{{
#include <boost/multi_array.hpp>
#include <boost/polygon/polygon.hpp>
}}}
..it breaks, if you reverse them it works:
{{{
#include <boost/polygon/polygon.hpp>
#include <boost/multi_array.hpp>
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9386> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC