main.cpp:132:17: error: no viable conversion from 'basic_string<char,
std::char_traits<char>, std::allocator<char>>' to 'const char *'
infoFile.open(".masterpassword/" + username + ".mpdat", ...
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/4.2.1/fstream:648:24: note: passing argument to parameter '__s'
here
open(constchar* __s,
This is quite odd. When I just pass it normally, like ".masterpassword/plazmotech.mpdat" I don't get an error. I've tried assigning it to a string variable and it too doesn't work.