Qualify std::ifstream and std::ofstream
Starting with Boost 1.60.0 <boost/filesystem.hpp> includes <boost/filesystem/fstream.hpp>, which declares ifstream and ofstream types that make the unqualified names ifstream and ofstream ambiguous. The names must be qualified to refer to the std versions.
This commit is contained in:
committed by
Lothar May
parent
2b372d0019
commit
65eea1d6ec
@@ -96,7 +96,7 @@ DownloaderThread::Main()
|
||||
// Previous download was finished.
|
||||
if (m_curDownloadData) {
|
||||
path filepath(m_curDownloadData->filename);
|
||||
ifstream instream(filepath.file_string().c_str(), ios_base::in | ios_base::binary);
|
||||
std::ifstream instream(filepath.file_string().c_str(), ios_base::in | ios_base::binary);
|
||||
// Find out file size.
|
||||
// Not fully portable, but works on win/linux/mac.
|
||||
instream.seekg(0, ios_base::beg);
|
||||
|
||||
Reference in New Issue
Block a user