Disambiguate std and boost placeholder
This commit is contained in:
parent
27c6276ff8
commit
fa57d5ed86
@ -26,6 +26,7 @@
|
|||||||
#include "evoral/Event.h"
|
#include "evoral/Event.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
using namespace std::placeholders;
|
||||||
|
|
||||||
namespace Evoral {
|
namespace Evoral {
|
||||||
|
|
||||||
|
@ -42,9 +42,8 @@ void
|
|||||||
Receiver::listen_to (Transmitter &transmitter)
|
Receiver::listen_to (Transmitter &transmitter)
|
||||||
|
|
||||||
{
|
{
|
||||||
/* odd syntax here because boost's placeholders (_1, _2) are in an
|
/* odd syntax here because std's placeholders (_1, _2) are in an
|
||||||
anonymous namespace which causes ambiguity with sigc++ (and will also
|
anonymous namespace which causes ambiguity with sigc++
|
||||||
do so with std::placeholder in the C++11 future
|
|
||||||
*/
|
*/
|
||||||
transmitter.sender().connect_same_thread (connections, std::bind (&Receiver::receive, this, std::placeholders::_1, std::placeholders::_2));
|
transmitter.sender().connect_same_thread (connections, std::bind (&Receiver::receive, this, std::placeholders::_1, std::placeholders::_2));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user