Commit 8508742e authored by Tudor Bosman's avatar Tudor Bosman

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
parent 51ef8c7a
...@@ -188,9 +188,10 @@ public: ...@@ -188,9 +188,10 @@ public:
// Allow implicit conversion from Range<const char*> (aka StringPiece) to // Allow implicit conversion from Range<const char*> (aka StringPiece) to
// Range<const unsigned char*> (aka ByteRange), as they're both frequently // Range<const unsigned char*> (aka ByteRange), as they're both frequently
// used to represent ranges of bytes. // used to represent ranges of bytes.
template <typename std::enable_if< template <class OtherIter, typename std::enable_if<
(std::is_same<Iter, const unsigned char*>::value), int>::type = 0> (std::is_same<Iter, const unsigned char*>::value &&
/* implicit */ Range(const Range<const char*>& other) std::is_same<OtherIter, const char*>::value), int>::type = 0>
/* implicit */ Range(const Range<OtherIter>& other)
: b_(reinterpret_cast<const unsigned char*>(other.begin())), : b_(reinterpret_cast<const unsigned char*>(other.begin())),
e_(reinterpret_cast<const unsigned char*>(other.end())) { e_(reinterpret_cast<const unsigned char*>(other.end())) {
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment