Skip to content

Commit

Permalink
fixed for tag v2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
skramm committed Jun 18, 2021
1 parent 72a1e93 commit 2660386
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions homog2d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1479,11 +1479,8 @@ class Segment_
return !(*this == s2);
}
template<typename U>
friend std::ostream& operator << ( std::ostream& f, const Segment_<U>& seg )
{
f << seg._ptS1 << "-" << seg._ptS2;
return f;
}
friend std::ostream& operator << ( std::ostream& f, const Segment_<U>& seg );

/// Returns the points as a std::pair
/** The one with smallest x coordinate will be returned as "first". If x-coordinate are equal, then
the one with smallest y-coordinate will be returned first */
Expand Down Expand Up @@ -1528,6 +1525,14 @@ the one with smallest y-coordinate will be returned first */
#endif
};

template<typename U>
inline
std::ostream& operator << ( std::ostream& f, const Segment_<U>& seg )
{
f << seg._ptS1 << "-" << seg._ptS2;
return f;
}

//------------------------------------------------------------------
/// Implementation of line::isParallelTo( Segment )
template<typename LP,typename FPT>
Expand Down

0 comments on commit 2660386

Please sign in to comment.