prog.cpp:46:1: error: expected '}' at end of input
prog.cpp: In constructor 'FileResourceCache<T>::FileResourceCache(std::string)':
prog.cpp:12:43: error: class 'FileResourceCache<T>' does not have any field named 'base_dir'
prog.cpp: In member function 'T& FileResourceCache<T>::operator[](std::string)':
prog.cpp:17:14: error: 'base_dir' was not declared in this scope
prog.cpp:19:18: error: 'struct std::stringstream' has no member named 'string'
prog.cpp:20:7: error: 'resources' was not declared in this scope
prog.cpp:21:31: error: there are no arguments to 'load_from_file' that depend on a template parameter, so a declaration of 'load_from_file' must be available
prog.cpp:21:31: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
prog.cpp:25:5: error: expected '}' before 'else'
prog.cpp:31:34: error: 'struct std::stringstream' has no member named 'string'
prog.cpp: At global scope:
prog.cpp:36:3: error: expected unqualified-id at end of input