Work around gcc 2 member template issue

Fixes the gcc 2 build.
This commit is contained in:
Ingo Weinhold 2016-04-29 23:02:39 +02:00
parent fc76f5a866
commit 262ddba25c
2 changed files with 5 additions and 4 deletions

View File

@ -142,10 +142,11 @@ public:
template<typename Value>
Value Get(const Value& value) const
{ return Get(value, fSwappedByteOrder); }
{ return StaticGet(value,
fSwappedByteOrder); }
template<typename Value>
static Value Get(const Value& value,
static Value StaticGet(const Value& value,
bool swappedByteOrder);
private:
@ -191,7 +192,7 @@ private:
template<typename Value>
/*static*/ inline Value
ElfFile::Get(const Value& value, bool swappedByteOrder)
ElfFile::StaticGet(const Value& value, bool swappedByteOrder)
{
if (!swappedByteOrder)
return value;

View File

@ -159,7 +159,7 @@ public:
template<typename Value>
Value Get(const Value& value) const
{
return ElfFile::Get(value, fSwappedByteOrder);
return ElfFile::StaticGet(value, fSwappedByteOrder);
}
void SetSource(ElfSymbolLookupSource* source)