Boost C++ Libraries: Ticket #7331: nsphere extension does not compile https://svn.boost.org/trac10/ticket/7331 <p> Two problems: </p> <p> First, a header path is screwed up. </p> <blockquote> <p> $ svn diff Index: extensions/nsphere/core/replace_point_type.hpp =================================================================== --- extensions/nsphere/core/replace_point_type.hpp (revision 80406) +++ extensions/nsphere/core/replace_point_type.hpp (working copy) @@ -16,7 +16,7 @@ </p> <blockquote> <p> #define BOOST_GEOMETRY_EXTENSIONS_NSPHERE_CORE_REPLACE_POINT_TYPE_HPP </p> </blockquote> </blockquote> <blockquote> <p> -#include &lt;boost/geometry/core/replace_point_type.hpp&gt; +#include &lt;boost/geometry/extensions/util/replace_point_type.hpp&gt; </p> </blockquote> <blockquote> <blockquote> <p> #include &lt;boost/geometry/extensions/nsphere/core/tags.hpp&gt; #include &lt;boost/geometry/extensions/nsphere/geometries/nsphere.hpp&gt; </p> </blockquote> </blockquote> <p> With that fixed there are various template argument errors just compiling the nsphere.hpp file. </p> <blockquote> <p> In file included from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:17:0, </p> <blockquote> <p> from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/extensions/nsphere/core/access.hpp:33:62: error: wrong number of template arguments (4, should be 5) In file included from thirdparty/boost/geometry/extensions/nsphere/core/access.hpp:19:0, </p> <blockquote> <p> from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:17, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/core/access.hpp:143:8: error: provided for ‘template&lt;class Tag, class Geometry, class <a class="missing wiki">CoordinateType</a>, long unsigned int Dimension, class <a class="missing wiki">IsPointer</a>&gt; struct boost::geometry::core_dispatch::access’ In file included from thirdparty/boost/geometry/extensions/nsphere/core/replace_point_type.hpp:22:0, </p> <blockquote> <p> from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:20, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/extensions/nsphere/geometries/nsphere.hpp: In constructor ‘boost::geometry::model::nsphere&lt;P, T&gt;::nsphere()’: thirdparty/boost/geometry/extensions/nsphere/geometries/nsphere.hpp:60:9: error: ‘assign_value’ is not a member of ‘boost::geometry::detail::assign’ thirdparty/boost/geometry/extensions/nsphere/geometries/nsphere.hpp:60:9: note: suggested alternative: In file included from thirdparty/boost/geometry/algorithms/convert.hpp:24:0, </p> <blockquote> <p> from thirdparty/boost/geometry/geometries/box.hpp:21, from thirdparty/boost/geometry/extensions/util/replace_point_type.hpp:34, from thirdparty/boost/geometry/extensions/nsphere/core/replace_point_type.hpp:19, from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:20, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/arithmetic/arithmetic.hpp:253:13: note: ‘boost::geometry::assign_value’ In file included from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:30:0, </p> <blockquote> <p> from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/extensions/nsphere/algorithms/area.hpp: At global scope: thirdparty/boost/geometry/extensions/nsphere/algorithms/area.hpp:70:44: error: wrong number of template arguments (3, should be 2) In file included from thirdparty/boost/geometry/extensions/nsphere/algorithms/area.hpp:19:0, </p> <blockquote> <p> from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:30, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/algorithms/area.hpp:133:8: error: provided for ‘template&lt;class Geometry, class Tag&gt; struct boost::geometry::dispatch::area’ In file included from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:33:0, </p> <blockquote> <p> from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/extensions/nsphere/algorithms/envelope.hpp:67:5: error: wrong number of template arguments (6, should be 2) In file included from thirdparty/boost/geometry/extensions/nsphere/algorithms/envelope.hpp:18:0, </p> <blockquote> <p> from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:33, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/algorithms/envelope.hpp:90:8: error: provided for ‘template&lt;class Geometry, class Tag&gt; struct boost::geometry::dispatch::envelope’ In file included from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:34:0, </p> <blockquote> <p> from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/extensions/nsphere/algorithms/num_points.hpp:33:47: error: wrong number of template arguments (3, should be 2) In file included from thirdparty/boost/geometry/extensions/nsphere/algorithms/num_points.hpp:17:0, </p> <blockquote> <p> from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:34, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/algorithms/num_points.hpp:102:8: error: provided for ‘template&lt;class <a class="missing wiki">GeometryTag</a>, class Geometry&gt; struct boost::geometry::dispatch::num_points’ In file included from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:35:0, </p> <blockquote> <p> from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/extensions/nsphere/algorithms/within.hpp:149:58: error: wrong number of template arguments (5, should be 4) In file included from thirdparty/boost/geometry/algorithms/disjoint.hpp:33:0, </p> <blockquote> <p> from thirdparty/boost/geometry/algorithms/num_points.hpp:29, from thirdparty/boost/geometry/extensions/nsphere/algorithms/num_points.hpp:17, from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:34, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/algorithms/within.hpp:173:8: error: provided for ‘template&lt;class Geometry1, class Geometry2, class Tag1, class Tag2&gt; struct boost::geometry::dispatch::within’ In file included from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:35:0, </p> <blockquote> <p> from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/extensions/nsphere/algorithms/within.hpp:158:58: error: wrong number of template arguments (5, should be 4) In file included from thirdparty/boost/geometry/algorithms/disjoint.hpp:33:0, </p> <blockquote> <p> from thirdparty/boost/geometry/algorithms/num_points.hpp:29, from thirdparty/boost/geometry/extensions/nsphere/algorithms/num_points.hpp:17, from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:34, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/algorithms/within.hpp:173:8: error: provided for ‘template&lt;class Geometry1, class Geometry2, class Tag1, class Tag2&gt; struct boost::geometry::dispatch::within’ In file included from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:35:0, </p> <blockquote> <p> from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/extensions/nsphere/algorithms/within.hpp:167:72: error: wrong number of template arguments (5, should be 4) In file included from thirdparty/boost/geometry/algorithms/disjoint.hpp:33:0, </p> <blockquote> <p> from thirdparty/boost/geometry/algorithms/num_points.hpp:29, from thirdparty/boost/geometry/extensions/nsphere/algorithms/num_points.hpp:17, from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:34, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/algorithms/within.hpp:173:8: error: provided for ‘template&lt;class Geometry1, class Geometry2, class Tag1, class Tag2&gt; struct boost::geometry::dispatch::within’ In file included from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:35:0, </p> <blockquote> <p> from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/extensions/nsphere/algorithms/within.hpp:176:60: error: wrong number of template arguments (5, should be 4) In file included from thirdparty/boost/geometry/algorithms/disjoint.hpp:33:0, </p> <blockquote> <p> from thirdparty/boost/geometry/algorithms/num_points.hpp:29, from thirdparty/boost/geometry/extensions/nsphere/algorithms/num_points.hpp:17, from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:34, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/algorithms/within.hpp:173:8: error: provided for ‘template&lt;class Geometry1, class Geometry2, class Tag1, class Tag2&gt; struct boost::geometry::dispatch::within’ In file included from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:35:0, </p> <blockquote> <p> from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/extensions/nsphere/algorithms/within.hpp:185:66: error: wrong number of template arguments (5, should be 4) In file included from thirdparty/boost/geometry/algorithms/disjoint.hpp:33:0, </p> <blockquote> <p> from thirdparty/boost/geometry/algorithms/num_points.hpp:29, from thirdparty/boost/geometry/extensions/nsphere/algorithms/num_points.hpp:17, from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:34, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/algorithms/within.hpp:173:8: error: provided for ‘template&lt;class Geometry1, class Geometry2, class Tag1, class Tag2&gt; struct boost::geometry::dispatch::within’ In file included from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:35:0, </p> <blockquote> <p> from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/extensions/nsphere/algorithms/within.hpp:194:61: error: wrong number of template arguments (5, should be 4) In file included from thirdparty/boost/geometry/algorithms/disjoint.hpp:33:0, </p> <blockquote> <p> from thirdparty/boost/geometry/algorithms/num_points.hpp:29, from thirdparty/boost/geometry/extensions/nsphere/algorithms/num_points.hpp:17, from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:34, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/algorithms/within.hpp:173:8: error: provided for ‘template&lt;class Geometry1, class Geometry2, class Tag1, class Tag2&gt; struct boost::geometry::dispatch::within’ In file included from thirdparty/boost/geometry/geometries/point.hpp:26:0, </p> <blockquote> <p> from thirdparty/boost/geometry/extensions/util/replace_point_type.hpp:29, from thirdparty/boost/geometry/extensions/nsphere/core/replace_point_type.hpp:19, from thirdparty/boost/geometry/extensions/nsphere/nsphere.hpp:20, from src/test.cpp:3: </p> </blockquote> <p> thirdparty/boost/geometry/util/math.hpp:176:14: error: ‘boost::geometry::math::r2d’ defined but not used [-Werror=unused-variable] cc1plus: all warnings being treated as errors make<a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a>: <strong>* [obj/Debug/test.o] Error 1 make: </strong>* [test] Error 2 </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7331 Trac 1.4.3 Barend Gehrels Sat, 17 Aug 2013 21:11:43 GMT status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/7331#comment:1 https://svn.boost.org/trac10/ticket/7331#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.55.0</span> </li> </ul> <p> All nsphere unit tests compile fine now. </p> Ticket