Fix for GCC 4.9.x
parent
a8682a1e40
commit
eb3761670e
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue