locked
Is the async namespace clashing with std::async? RRS feed

  • Question

  • 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?

    Monday, February 11, 2013 5:18 AM

Answers

  • 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

    Thursday, February 28, 2013 4:46 AM

All replies

  • 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

    Tuesday, February 12, 2013 1:56 AM
  • 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

    Thursday, February 28, 2013 4:46 AM