c++11 - C++ map of a key and file doesn't work -


i want create map of key , corresponding file in c++. used below snipper, giving mean exception @ last line *m_jstabfilesmap[key] << text;:

    std::map<std::string, std::ofstream*> m_jstabfilesmap;     std::string text = "hello all";     std::string key = "a";     *m_jstabfilesmap[key] << text; 

the copy constructor of std::ofstream explicitely deleted. have store streams pointer or in different way doesn't try copy stream object if want them in map.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -