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