j0r1/JRTPLIB

Building for C++11 fails due to naming conflict of bind in rtpudpv4transmitter.cpp

MathijsV opened this issue · 1 comments

Building the library for C++11 on macOS (Apple Clang) fails due to a naming conflict in RTPUDPv4Transmitter, which declares "using namespace std;" which changes the meaning of all bind calls from a socket-bind to a functional-bind. This then fails to compile as the arguments do not match. Removing the using namespace and declaring std:: explicitly where needed fixes this, as does replacing the bind call with ::bind. Then the rest compiles nicely.

j0r1 commented

This should have been fixed a few weeks ago. Did you test this with the master branch? Or with 3.11.1?