From 1c693f05bfba855c69fe85bcf8a9ebb1823508a7 Mon Sep 17 00:00:00 2001 From: djowel Date: Mon, 18 Feb 2019 12:45:36 +0800 Subject: [PATCH] Fix is_view_impl to return false for non fusion sequences (just like is_sequence_impl). --- include/boost/fusion/support/is_view.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/boost/fusion/support/is_view.hpp b/include/boost/fusion/support/is_view.hpp index b2b52c42..91ad4f6d 100644 --- a/include/boost/fusion/support/is_view.hpp +++ b/include/boost/fusion/support/is_view.hpp @@ -1,7 +1,7 @@ /*============================================================================= Copyright (c) 2001-2011 Joel de Guzman - Distributed under the Boost Software License, Version 1.0. (See accompanying + Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #if !defined(FUSION_IS_VIEW_03202006_0015) @@ -40,6 +40,13 @@ namespace boost { namespace fusion struct apply : mpl::false_ {}; }; + template <> + struct is_view_impl + { + template + struct apply : mpl::false_ {}; + }; + template <> struct is_view_impl {