From 899d83f0def74933b69dc96d07b501d4f319de69 Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Tue, 17 Oct 2017 16:12:20 -0700 Subject: [PATCH] Un-templatize Range::str Summary: [Folly] Un-templatize `Range::str`. Reviewed By: ot Differential Revision: D6075642 fbshipit-source-id: 08fc399c43750d34463de7634be4fe386b5db97c --- folly/Range.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/folly/Range.h b/folly/Range.h index ce3e1fe8..3d916594 100644 --- a/folly/Range.h +++ b/folly/Range.h @@ -481,15 +481,11 @@ class Range : private boost::totally_ordered> { return Tgt(b_, size()); } // Works only for Range and Range - template - auto str() const - -> decltype(Tgt(std::declval(), std::declval())) { - return to(); + std::string str() const { + return to(); } - template - auto toString() const - -> decltype(Tgt(std::declval(), std::declval())) { - return to(); + std::string toString() const { + return to(); } const_range_type castToConst() const { -- 2.34.1