From 5ac47c3f5231aceb274e34be873986f6b49488fd Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Thu, 25 Jun 2020 01:40:53 +0000 Subject: [PATCH] Move explicit template class specialization out of the class to fix gcc builds (NFC) gcc fails with: explicit specialization in non-namespace scope --- mlir/include/mlir/Support/InterfaceSupport.h | 30 +++++++++++++++++----------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/mlir/include/mlir/Support/InterfaceSupport.h b/mlir/include/mlir/Support/InterfaceSupport.h index c29c49d..e7a7eca 100644 --- a/mlir/include/mlir/Support/InterfaceSupport.h +++ b/mlir/include/mlir/Support/InterfaceSupport.h @@ -123,6 +123,24 @@ private: // InterfaceMap //===----------------------------------------------------------------------===// +/// Utility to filter a given sequence of types base upon a predicate. +template +struct FilterTypeT { + template + using type = std::tuple; +}; +template <> +struct FilterTypeT { + template + using type = std::tuple<>; +}; +template