Fix for GCC 4.9.x

master
Nicky 2019-03-29 23:47:28 +01:00
parent a8682a1e40
commit eb3761670e
1 changed files with 7 additions and 2 deletions

View File

@ -166,8 +166,12 @@ public:
};
// Generate a hash of an LLUUID object using the boost hash templates.
template <>
struct boost::hash<LLUUID>
// <FS:ND> GCC 4.9 does not like the specialization in form of boost::hash but rather wants a namespace
// template <>
// struct boost::hash<LLUUID>
namespace boost { template <> struct hash<LLUUID>
// </FS:ND>
{
typedef LLUUID argument_type;
typedef std::size_t result_type;
@ -183,6 +187,7 @@ struct boost::hash<LLUUID>
return seed;
}
};
} // <FS:ND/> close namespace
// <FS:Ansariel> UUID hash calculation
struct FSUUIDHash