fork download
  1. #include <iostream>
  2. #include <list>
  3.  
  4. #include <boost/geometry.hpp>
  5. #include <boost/geometry/geometries/point_xy.hpp>
  6. #include <boost/geometry/geometries/polygon.hpp>
  7.  
  8. typedef boost::geometry::model::d2::point_xy<double> point_type;
  9. typedef boost::geometry::model::polygon<point_type> polygon_type;
  10.  
  11. int main()
  12. {
  13. // Construct
  14. polygon_type poly;
  15. boost::geometry::append(poly, point_type {0,0});
  16. boost::geometry::append(poly, point_type {1,0});
  17. boost::geometry::append(poly, point_type {0,1});
  18. boost::geometry::append(poly, point_type {0,0});
  19.  
  20. polygon_type output;
  21.  
  22. boost::geometry::buffer(poly, output, .5); // THIS_OPERATION_IS_NOT_OR_NOT_YET_IMPLEMENTED
  23.  
  24. return 0;
  25. }
  26.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
In file included from /usr/include/boost/geometry/core/coordinate_system.hpp:18:0,
                 from /usr/include/boost/geometry/core/cs.hpp:21,
                 from /usr/include/boost/geometry/geometry.hpp:19,
                 from /usr/include/boost/geometry.hpp:17,
                 from prog.cpp:4:
/usr/include/boost/geometry/algorithms/not_implemented.hpp: In instantiation of 'struct boost::geometry::nyi::not_implemented_error<boost::geometry::info::POLYGON, boost::geometry::info::POLYGON, void>':
/usr/include/boost/geometry/algorithms/not_implemented.hpp:103:8:   required from 'struct boost::geometry::not_implemented<boost::geometry::polygon_tag, boost::geometry::polygon_tag, void>'
/usr/include/boost/geometry/algorithms/buffer.hpp:86:8:   required from 'struct boost::geometry::dispatch::buffer<boost::geometry::model::polygon<boost::geometry::model::d2::point_xy<double> >, boost::geometry::model::polygon<boost::geometry::model::d2::point_xy<double> >, boost::geometry::polygon_tag, boost::geometry::polygon_tag>'
/usr/include/boost/geometry/algorithms/buffer.hpp:136:17:   required from 'void boost::geometry::buffer(const Input&, Output&, const Distance&, const Distance&) [with Input = boost::geometry::model::polygon<boost::geometry::model::d2::point_xy<double> >; Output = boost::geometry::model::polygon<boost::geometry::model::d2::point_xy<double> >; Distance = double]'
prog.cpp:22:45:   required from here
/usr/include/boost/geometry/algorithms/not_implemented.hpp:64:5: error: no matching function for call to 'assertion_failed(mpl_::failed************ (boost::geometry::nyi::not_implemented_error<boost::geometry::info::POLYGON, boost::geometry::info::POLYGON, void>::THIS_OPERATION_IS_NOT_OR_NOT_YET_IMPLEMENTED::************)(mpl_::assert_::types<boost::geometry::info::POLYGON, boost::geometry::info::POLYGON, void, mpl_::na>))'
     BOOST_MPL_ASSERT_MSG
     ^
/usr/include/boost/mpl/assert.hpp:82:5: note: candidate: template<bool C> int mpl_::assertion_failed(typename mpl_::assert<C>::type)
 int assertion_failed( typename assert<C>::type );
     ^
/usr/include/boost/mpl/assert.hpp:82:5: note:   template argument deduction/substitution failed:
/usr/include/boost/geometry/algorithms/not_implemented.hpp:64:5: note:   cannot convert 'boost::geometry::nyi::not_implemented_error<Term1, Term2, Term3>::THIS_OPERATION_IS_NOT_OR_NOT_YET_IMPLEMENTED71::assert_arg<boost::geometry::info::POLYGON, boost::geometry::info::POLYGON, void>()' (type 'mpl_::failed************ (boost::geometry::nyi::not_implemented_error<boost::geometry::info::POLYGON, boost::geometry::info::POLYGON, void>::THIS_OPERATION_IS_NOT_OR_NOT_YET_IMPLEMENTED::************)(mpl_::assert_::types<boost::geometry::info::POLYGON, boost::geometry::info::POLYGON, void, mpl_::na>)') to type 'mpl_::assert<false>::type {aka mpl_::assert<false>}'
     BOOST_MPL_ASSERT_MSG
     ^
In file included from /usr/include/boost/geometry/geometry.hpp:40:0,
                 from /usr/include/boost/geometry.hpp:17,
                 from prog.cpp:4:
/usr/include/boost/geometry/algorithms/buffer.hpp: In instantiation of 'void boost::geometry::buffer(const Input&, Output&, const Distance&, const Distance&) [with Input = boost::geometry::model::polygon<boost::geometry::model::d2::point_xy<double> >; Output = boost::geometry::model::polygon<boost::geometry::model::d2::point_xy<double> >; Distance = double]':
prog.cpp:22:45:   required from here
/usr/include/boost/geometry/algorithms/buffer.hpp:136:17: error: 'apply' is not a member of 'boost::geometry::dispatch::buffer<boost::geometry::model::polygon<boost::geometry::model::d2::point_xy<double> >, boost::geometry::model::polygon<boost::geometry::model::d2::point_xy<double> >, boost::geometry::polygon_tag, boost::geometry::polygon_tag>'
         >::apply(geometry_in, distance, chord_length, geometry_out);
                 ^
stdout
Standard output is empty