The following example program doesn't compile for me on either clang 3.1 or gcc 4.8:
#include <fstream>
#include <vector>
using namespace std;
int main()
{
vector<ifstream> bla;
bla.emplace_back("filename");
return 0;
}
However, I thought emplace_back should
"Insert a new element at the end of the vector, right after its current last element. This new element is constructed in place using args as the arguments for its construction."
Does anyone know why this doesn't compile then? did I misunderstand or are the library implementations not yet complete?