Alembic: fixed C++98 compatibility

This commit is contained in:
Sybren A. Stüvel 2017-04-26 10:39:43 +02:00
parent dba6e170c4
commit 268cb5fbd3

@ -68,7 +68,7 @@ static IArchive open_archive(const std::string &filename,
#else
/* Inspect the file to see whether it's really a HDF5 file. */
char header[4]; /* char(0x89) + "HDF" */
std::ifstream the_file(filename, std::ios::in | std::ios::binary);
std::ifstream the_file(filename.c_str(), std::ios::in | std::ios::binary);
if (!the_file) {
std::cerr << "Unable to open " << filename << std::endl;
}