Is the async namespace clashing with std::async?
-
Monday, February 11, 2013 5:18 AM
Hi all,
Just starting with Casablanca. I'm running into this issue whereby the compiler will complain that the symbol "async" is ambiguous. The following sample reproduces the error.
#include <http_client.h> #include <future> using namespace std; int main() { return 0; }
Is this a legitimate issue?
All Replies
-
Tuesday, February 12, 2013 1:56 AMOwner
GhostlyGhost,
Thanks for reporting this! If you remove 'using namespace std', your code will compile. Of course, you will need to explicitly qualify symbols from the std namespace, such std::future etc.
We have renamed the async namespace in the upcoming release, so this problem will not happen any more.
Artur Laksberg Visual C++ Team Microsoft
-
Thursday, February 28, 2013 4:46 AMOwner
This is no longer an issue with the 0.6 release, so I will consider this closed. Thanks again.Artur Laksberg Visual C++ Team Microsoft
- Marked As Answer by Artur LaksbergOwner Thursday, February 28, 2013 4:46 AM

