Merge branch 'master' into serialize

This commit is contained in:
ToruNiina
2019-02-13 23:16:39 +09:00
3 changed files with 46 additions and 4 deletions

View File

@@ -1517,7 +1517,7 @@ inline table parse(std::istream& is, std::string fname = "unknown file")
inline table parse(const std::string& fname)
{
std::ifstream ifs(fname.c_str());
std::ifstream ifs(fname.c_str(), std::ios_base::binary);
if(!ifs.good())
{
throw std::runtime_error("toml::parse: file open error -> " + fname);