From 2f5439e49c2d1403e0ed9568562bb534a67ffc21 Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Tue, 24 Oct 2017 17:16:58 -0700 Subject: [PATCH] Simplify IsUniquePtrToSL in IOBuf.h Summary: [Folly] Simplify `IsUniquePtrToSL` in `IOBuf.h`. Reviewed By: Orvid Differential Revision: D6131231 fbshipit-source-id: b054ef7ef9f313943a3ac1022ca6a23874a464df --- folly/io/IOBuf.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/folly/io/IOBuf.h b/folly/io/IOBuf.h index bbf698cd..6ccd651e 100644 --- a/folly/io/IOBuf.h +++ b/folly/io/IOBuf.h @@ -211,13 +211,10 @@ namespace folly { */ namespace detail { // Is T a unique_ptr<> to a standard-layout type? -template struct IsUniquePtrToSL - : public std::false_type { }; -template -struct IsUniquePtrToSL< - std::unique_ptr, - typename std::enable_if::value>::type> - : public std::true_type { }; +template +struct IsUniquePtrToSL : std::false_type {}; +template +struct IsUniquePtrToSL> : std::is_standard_layout {}; } // namespace detail class IOBuf { -- 2.34.1