From 8508742ea60336ea43d7d762f525ae17ca6f8de0 Mon Sep 17 00:00:00 2001 From: Tudor Bosman Date: Thu, 12 Jul 2012 20:18:29 -0700 Subject: [PATCH] Unbreak build. Summary: I could have sworn I undid that un-templatification of the constructor. Test Plan: build folly/test Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D518981 --- folly/Range.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/folly/Range.h b/folly/Range.h index 9ddf0452..65b7441d 100644 --- a/folly/Range.h +++ b/folly/Range.h @@ -188,9 +188,10 @@ public: // Allow implicit conversion from Range (aka StringPiece) to // Range (aka ByteRange), as they're both frequently // used to represent ranges of bytes. - template ::value), int>::type = 0> - /* implicit */ Range(const Range& other) + template ::value && + std::is_same::value), int>::type = 0> + /* implicit */ Range(const Range& other) : b_(reinterpret_cast(other.begin())), e_(reinterpret_cast(other.end())) { } -- 2.34.1