mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-09 23:24:02 +00:00
[examples] change construction order to avoid gcc/clang warning
This commit is contained in:
parent
a569eaf9fb
commit
64c8967170
@ -110,8 +110,8 @@ template <typename Linestring>
|
||||
struct bg_edge_property
|
||||
{
|
||||
bg_edge_property(Linestring const& line)
|
||||
: m_line(line)
|
||||
, m_length(boost::geometry::length(line, haversine))
|
||||
: m_length(boost::geometry::length(line, haversine))
|
||||
, m_line(line)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -104,8 +104,8 @@ template <typename Linestring>
|
||||
struct bg_edge_property
|
||||
{
|
||||
bg_edge_property(Linestring const& line)
|
||||
: m_line(line)
|
||||
, length(boost::geometry::length(line, haversine))
|
||||
: length(boost::geometry::length(line, haversine))
|
||||
, m_line(line)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user