There is no overload of std::map::insert
matching the arguments you are passing. This would work:
auto p = testmap.insert(std::make_pair(1, testvector));
std::cout << std::boolalpha;
std::cout << "Did insert succeed? " << p.second << std::endl;
This will succeed if there is no element in the map with key 1
.