From: Yedidya Feldblum Date: Tue, 17 Oct 2017 23:12:20 +0000 (-0700) Subject: Un-templatize Range::str X-Git-Tag: v2017.10.23.00~33 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=899d83f0def74933b69dc96d07b501d4f319de69;hp=a25c5a91f3e0e5b60e43fdf2f1542649996bdcbf;ds=sidebyside Un-templatize Range::str Summary: [Folly] Un-templatize `Range::str`. Reviewed By: ot Differential Revision: D6075642 fbshipit-source-id: 08fc399c43750d34463de7634be4fe386b5db97c --- 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 {