Skip to content

Commit

Permalink
gcc11 fix error: call of overloaded 'bind(void (vdrlive::Task::*)(), …
Browse files Browse the repository at this point in the history
…const std::_Placeholder<1>&)' is ambiguous

author: martinkg
  • Loading branch information
kfb77 committed Jan 11, 2021
1 parent 3b24485 commit 79b7394
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@

// STL headers need to be before VDR tools.h (included by <vdr/menu.h>)
#include <algorithm>
#include <functional>

#include <vdr/menu.h>

namespace vdrlive {

using std::for_each;
#if __cplusplus >= 201103L
using std::bind;
using namespace std::placeholders;
#else
using std::tr1::bind;
using namespace std::tr1::placeholders;
#endif

const char* NowReplaying()
{
Expand Down

0 comments on commit 79b7394

Please sign in to comment.