Skip to content

Commit

Permalink
fix(portability): At least GCC 4.0 and GCC 4.2 want a typename here
Browse files Browse the repository at this point in the history
Otherwise, it gives a "dependent-name 'SeqFile<T>::Error' is parsed as
a non-type, but instantiation yields a type" compilation error.

Issue #2.
  • Loading branch information
dwatteau committed Nov 13, 2020
1 parent cc95988 commit 53a326c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ScummRp/file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ template <class T> class SeqFile : public T
{
T::close();
_srcFile.close();
throw SeqFile::Error("SeqFile::close: Wrong size");
throw typename SeqFile::Error("SeqFile::close: Wrong size");
}
T::close();
_srcFile.close();
Expand Down

0 comments on commit 53a326c

Please sign in to comment.