Skip to content

Commit

Permalink
Fix compilation in C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Jan 24, 2021
1 parent 7e90586 commit 2830b68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/PlotJuggler/alphanum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,9 @@ namespace doj
Algorithm". If the objects are no std::string, they must
implement "std::ostream operator<< (std::ostream&, const Ty&)".
*/

template<class Ty>
struct alphanum_less : public std::binary_function<Ty, Ty, bool>
struct alphanum_less
{
bool operator()(const Ty& left, const Ty& right) const
{
Expand Down
1 change: 1 addition & 0 deletions src/transforms/moving_average_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
MovingAverageFilter::MovingAverageFilter() :
ui(new Ui::MovingAverageFilter),
_widget(new QWidget()),
_buffer(1),
_ring_view( _buffer.begin(), _buffer.end() )
{
ui->setupUi(_widget);
Expand Down

0 comments on commit 2830b68

Please sign in to comment.