My problem is easy and I think the solution is obvious but I couldn't figure it out (even after googling).
I want to create a std::map containing many differents objects (int, char, ...) so I thought about telmplate.
#include "stdafx.h"
#include<iostream>
#include <map>
using namespace std;
template<typename T>
std::map <std::string, T> myMap;
...
When I compile I have this error
error C2133: 'myMap' : unknown size
error C2998: std::map<std::string,T> myMap' : cannot be a template definition
So how to resolve that !!
Thank you