grantila / q

A platform-independent promise library for C++, implementing asynchronous continuations.
http://libq.io
Apache License 2.0
193 stars 24 forks source link

Fixed ambiguous call to make_unique() #18

Closed donatieng closed 6 years ago

donatieng commented 6 years ago

Code using q::make_scope() fails to compile when a C++14 compiler is used. Tested using clang under macOS:

Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0

This PR resolves the ambiguity between q::make_unique() and std::make_unique() and solves this issue.