From 3baa7d39dfbb9e80cd8d85766b9171ad63a2c88d Mon Sep 17 00:00:00 2001 From: Nicky Date: Sun, 31 Mar 2019 12:01:30 +0200 Subject: [PATCH] Another case of GCC 4.9 being unhappy of a template specialization not in a namespace. --- indra/llcommon/llsdutil.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/indra/llcommon/llsdutil.h b/indra/llcommon/llsdutil.h index 863be04c8a..7a80625aeb 100644 --- a/indra/llcommon/llsdutil.h +++ b/indra/llcommon/llsdutil.h @@ -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 +// GCC 4.9 does not like the specialization in form of boost::hash but rather wants a namespace +// template <> +// struct boost::hash +namespace boost { template <> struct hash +// { typedef LLSD argument_type; typedef std::size_t result_type; @@ -516,5 +519,6 @@ struct boost::hash return seed; } }; +} // close namespace #endif // LL_LLSDUTIL_H