Apple clang does not implement reinterpret_pointer_cast as mentioned here: https://github.com/conda-forge/libcxx-feedstock/issues/44
@@ -33,6 +33,17 @@
#include <iomanip>
#include <thread>
+#if __clang__
+namespace std {
+
+template <typename To, typename From>
+inline std::shared_ptr<To> reinterpret_pointer_cast(std::shared_ptr<From> const & ptr) noexcept {
+ return std::shared_ptr<To>(ptr, reinterpret_cast<To *>(ptr.get()));
+}
+#endif
namespace rtc {
using namespace std::placeholders;