The message means that the compiler can't tell if you want std::extent
or concurrency::extent
. There are three ways to fix this:
- remove the
#include
that brought instd::extent
- this is unlikely to be a good solution, since you presumably need something from that header - call
concurrency::extent
by its full name whenever you use it - awkward, but will work - remove
using namespace std;
and replace it with individual statements likeusing std::endl;
as you see among your#include
statements.
I like that last one best, though it's more work. The best way to discover which of these you need is to remove the using namespace std;
and compile. The error messages will let you know which types from std you are using.