I have this map which compiles fine in MSVC10 :
std::map m_logFiles;
But on ubuntu using g++ 4.5 with C++
std::ofstream is movable. This program compiles for me using clang/libc++:
std::ofstream
#include #include #include int main() { std::map m_logFiles; }
Reference 27.9.1.11 [ofstream.cons].