mirror of
https://github.com/boostorg/geometry.git
synced 2026-01-19 04:12:11 +00:00
fix: Compilation errors and warnings in examples
This commit is contained in:
@@ -17,11 +17,11 @@
|
||||
#include <iomanip>
|
||||
#include <limits>
|
||||
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
#include <boost/algorithm/string/trim.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#include <boost/graph/adjacency_list.hpp>
|
||||
#include <boost/graph/dijkstra_shortest_paths.hpp>
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/linestring.hpp>
|
||||
@@ -46,7 +46,6 @@ void read_wkt(std::string const& filename, std::vector<Tuple>& tuples, Box& box)
|
||||
{
|
||||
std::string line;
|
||||
std::getline(cpp_file, line);
|
||||
Geometry geometry;
|
||||
boost::trim(line);
|
||||
if (! line.empty() && ! boost::starts_with(line, "#"))
|
||||
{
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
#include <iomanip>
|
||||
#include <limits>
|
||||
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
#include <boost/algorithm/string/trim.hpp>
|
||||
#include <boost/foreach.hpp>
|
||||
|
||||
#include <boost/graph/adjacency_list.hpp>
|
||||
#include <boost/graph/dijkstra_shortest_paths.hpp>
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
|
||||
#include <boost/geometry/geometry.hpp>
|
||||
#include <boost/geometry/geometries/linestring.hpp>
|
||||
@@ -51,7 +51,6 @@ void read_wkt(std::string const& filename, std::vector<Tuple>& tuples, Box& box)
|
||||
{
|
||||
std::string line;
|
||||
std::getline(cpp_file, line);
|
||||
Geometry geometry;
|
||||
boost::trim(line);
|
||||
if (! line.empty() && ! boost::starts_with(line, "#"))
|
||||
{
|
||||
|
||||
@@ -41,7 +41,7 @@ BOOST_GEOMETRY_REGISTER_RING(triangle)
|
||||
namespace boost { namespace geometry {
|
||||
|
||||
template<>
|
||||
inline double area<triangle>(const triangle& t)
|
||||
inline auto area<triangle>(const triangle& t)
|
||||
{
|
||||
/* C
|
||||
/ \
|
||||
|
||||
Reference in New Issue
Block a user