From 4e6aecd8fdb2e78478c86ad243ad5e829efb723d Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Mon, 6 Oct 2014 09:14:16 +1100 Subject: [PATCH] Fix workaround for clang/libc++. --- asio/include/asio/package.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/asio/include/asio/package.hpp b/asio/include/asio/package.hpp index 99152075..6d0186a7 100644 --- a/asio/include/asio/package.hpp +++ b/asio/include/asio/package.hpp @@ -84,10 +84,10 @@ public: packaged_token&& token) #if defined(_MSC_VER) : std::packaged_task(std::move(token.func_)), -#elif defined(__APPLE__) && defined(__clang__) +#elif defined(ASIO_HAS_CLANG_LIBCXX) : std::packaged_task(std::allocator_arg, - typename allocator_traits< - _Alloc>::template rebind_alloc(token.allocator_), + typename std::allocator_traits< + Allocator>::template rebind_alloc(token.allocator_), std::move(token.func_)), #else : std::packaged_task(std::allocator_arg,