Another case of GCC 4.9 being unhappy of a template specialization not in a namespace.

meow-7.2.2
Nicky 2019-03-31 12:01:30 +02:00
parent 3d597033c7
commit 3baa7d39df
1 changed files with 6 additions and 2 deletions

View File

@ -454,8 +454,11 @@ LLSD llsd_shallow(LLSD value, LLSD filter = LLSD());
// Specialization for generating a hash value from an LLSD block.
template <>
struct boost::hash<LLSD>
// <FS:ND> GCC 4.9 does not like the specialization in form of boost::hash but rather wants a namespace
// template <>
// struct boost::hash<LLSD>
namespace boost { template <> struct hash<LLSD>
// </FS:ND>
{
typedef LLSD argument_type;
typedef std::size_t result_type;
@ -516,5 +519,6 @@ struct boost::hash<LLSD>
return seed;
}
};
} // <FS:ND/> close namespace
#endif // LL_LLSDUTIL_H