mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-09 15:14:02 +00:00
fix: Compilation errors and warnings in examples
This commit is contained in:
parent
c089754885
commit
0c3228e589
@ -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
|
||||
/ \
|
||||
|
Loading…
x
Reference in New Issue
Block a user