/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Copyright (c) 2005-2006 Dan Marsden 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) ==============================================================================*/ #include #include #include #include #include #include #include #include int main() { using namespace boost::fusion; std::cout << tuple_open('['); std::cout << tuple_close(']'); std::cout << tuple_delimiter(", "); typedef boost::fusion::vector vector_type; vector_type t('a', 6.6, 'b'); { std::cout << filter(t) << std::endl; BOOST_TEST((filter(t) == make_vector('a', 'b'))); } { typedef boost::mpl::vector mpl_vec; BOOST_TEST((filter(mpl_vec()) == make_vector('\0', '\0'))); } return boost::report_errors(); }