From: Christopher Dykes Date: Mon, 9 May 2016 18:36:40 +0000 (-0700) Subject: Explicitly reference folly::detail X-Git-Tag: 2016.07.26~264 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5a0819942b053fa37b2cfb1080b5ecbe9cf117d5;p=folly.git Explicitly reference folly::detail Summary: Due to some fun with the order MSVC does name lookup in templates, it ends up complaining that these are ambigious between folly::detail and folly::recordio_helpers::detail. The solution is to simply reference folly::detail explicitly. Reviewed By: yfeldblum Differential Revision: D3271606 fbshipit-source-id: e599ad8d8fe33b1e4ec0b838ddb5dfacfdf60159 --- diff --git a/folly/Bits.h b/folly/Bits.h index 9d91aefa..b474617e 100644 --- a/folly/Bits.h +++ b/folly/Bits.h @@ -281,7 +281,7 @@ FB_GEN(uint16_t, our_bswap16) #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ template -struct EndianInt : public detail::EndianIntBase { +struct EndianInt : public EndianIntBase { public: static T big(T x) { return EndianInt::swap(x); } static T little(T x) { return x; } @@ -290,7 +290,7 @@ struct EndianInt : public detail::EndianIntBase { #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ template -struct EndianInt : public detail::EndianIntBase { +struct EndianInt : public EndianIntBase { public: static T big(T x) { return x; } static T little(T x) { return EndianInt::swap(x); } @@ -337,13 +337,13 @@ class Endian { #endif /* __BYTE_ORDER__ */ template static T swap(T x) { - return detail::EndianInt::swap(x); + return folly::detail::EndianInt::swap(x); } template static T big(T x) { - return detail::EndianInt::big(x); + return folly::detail::EndianInt::big(x); } template static T little(T x) { - return detail::EndianInt::little(x); + return folly::detail::EndianInt::little(x); } #if !defined(__ANDROID__)