Ticket #7700: test-case.cpp
| File test-case.cpp, 404 bytes (added by , 10 years ago) |
|---|
| Line | |
|---|---|
| 1 | #include <boost/fusion/include/as_vector.hpp> |
| 2 | #include <boost/fusion/include/remove_if.hpp> |
| 3 | |
| 4 | namespace mpl = boost::mpl; |
| 5 | namespace fusion = boost::fusion; |
| 6 | |
| 7 | struct element |
| 8 | { |
| 9 | typedef mpl::false_ type; |
| 10 | }; |
| 11 | |
| 12 | template <typename T> |
| 13 | struct meta_func |
| 14 | { |
| 15 | typedef typename T::type type; |
| 16 | }; |
| 17 | |
| 18 | int main() |
| 19 | { |
| 20 | fusion::vector<element, element> e; |
| 21 | fusion::as_vector(fusion::remove_if<meta_func<mpl::_1> >(e)); |
| 22 | } |
