[examples] change construction order to avoid gcc/clang warning

This commit is contained in:
Barend Gehrels 2014-09-17 10:46:34 +02:00
parent a569eaf9fb
commit 64c8967170
2 changed files with 4 additions and 4 deletions

View File

@ -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)
{
}

View File

@ -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)
{
}