I have created a very simple example to show the problem:
#include <unordered_map>
int main() {
struct Example {
int num;
float decimal;
};
std::unordered_map<int, Example> map;
map.insert(1, { 2, 3.4 }); // Error none of the overloads match!
}
I should be able to insert into the map of int and struct Example but the compiler says none of the overloads match..?