Skip to content

Commit

Permalink
COMP: Removed constructor template parameters from itkSmapsFileParser
Browse files Browse the repository at this point in the history
Removed the <TFirstType> constructor template parameter from MapRecordPlusor to avoid the following error with gcc-11 C++20:

error: expected unqualified-id before ')' token
  • Loading branch information
darrent1974 authored and thewtex committed Aug 11, 2021
1 parent f27ab3f commit 4c320b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Core/Common/src/itkSmapsFileParser.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ ITKCommon_EXPORT std::istream &
template <typename TFirstType>
struct MapRecordPlusor
{
MapRecordPlusor<TFirstType>(const char * token = "Size")
MapRecordPlusor(const char * token = "Size")
: m_Token(token)
{}

Expand All @@ -320,7 +320,7 @@ struct MapRecordPlusor
template <typename TFirstType>
struct MapRecordConditionalPlusor
{
MapRecordConditionalPlusor<TFirstType>(const char * filter, const char * token = "Size")
MapRecordConditionalPlusor(const char * filter, const char * token = "Size")
: m_Filter(filter)
, m_Token(token)
{}
Expand Down

0 comments on commit 4c320b1

Please sign in to comment.