Following example code doesn't compile, I'm not able to figure out how to insert an int
and tuple
into the map.
#include <tuple>
#include <string>
#include <map>
int main()
{
std::map<int, std::tuple<std::wstring, float, float>> map;
std::wstring temp = L"sample";
// ERROR: no instance of overloaded function matches the argument list
map.insert(1, std::make_tuple(temp, 0.f, 0.f));
return 0;
}
what is the correct way to insert example int, std::tuple
into the map