diff options
| author | David Malcolm <[email protected]> | 2018-02-23 09:54:02 -0500 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-02-26 18:46:20 +0100 |
| commit | 9f9c613bb6d672d331ce62a3f69ca9f2d115690d (patch) | |
| tree | ea3129080d99ca810a50d3cac10035ccb1676f36 /libdw/c++/known.cc | |
| parent | a5d5f65d9a493ae17ccaca89d927875ece7eac69 (diff) | |
Explicitly qualify specializations of elfutils::to_stringupstream/dwarflint
I attempted to build the "dwarflint" branch with gcc 7.3.1 , but ran
into various problems of the form:
c++/known.cc:220:1: error: explicit specialization of ‘template<class type> std::__cxx11::string elfutils::to_string(const type&)’ outside its namespace must use a nested-name-specifier [-fpermissive]
to_string<dwarf::dwarf_enum> (const dwarf::dwarf_enum &value)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
The fix appears to be trivial.
Signed-off-by: David Malcolm <[email protected]>
Diffstat (limited to 'libdw/c++/known.cc')
| -rw-r--r-- | libdw/c++/known.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdw/c++/known.cc b/libdw/c++/known.cc index bd84f52c..cb5fe693 100644 --- a/libdw/c++/known.cc +++ b/libdw/c++/known.cc @@ -217,14 +217,14 @@ enum_string (const value_type &value) template<> string -to_string<dwarf::dwarf_enum> (const dwarf::dwarf_enum &value) +elfutils::to_string<dwarf::dwarf_enum> (const dwarf::dwarf_enum &value) { return enum_string (value); } template<> string -to_string<dwarf_data::dwarf_enum> (const dwarf_data::dwarf_enum &value) +elfutils::to_string<dwarf_data::dwarf_enum> (const dwarf_data::dwarf_enum &value) { return enum_string (value); } |
