Closed MatanShahar closed 5 years ago
That's odd, if I enable C++14 support on my gcc 5.3, I don't have any problems. What compiler/platform are you using?
I encountered this with the current version of Clang that ships with Xcode:
Apple LLVM version 10.0.0 (clang-1000.10.44.2) Target: x86_64-apple-darwin18.0.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
It does not happen on GCC it looks like - does not reproduce on 8.2.
Ok, so with the apple clang it's indeed a problem, not just when activating c++14, also with c++11. With clang from ubuntu 18.04 there's no problem btw, neither with the intel compiler.
What's the reason you need to compile jrtplib itself with c++14 support ?
I've merged your pull request - apparently there were other scenarios where this was a problem for some reason. Thanks!
The
jrtp
library won't compile with a C++ 14 standard library due to the addition ofstd::bind
which conflicts withjrtp
'sbind
. This only happens for thesrc/rtpudpv4transmitter.cpp
file which imports thestd
namespace into the global namespace for that compilation unit. This PR removes theusing namespace std;
statement and changes any reference tostd
names to be explicit (i.e.std::vector
).