blob: 52059da02e0234731193bf3da8eb4d3f6ffb7b32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright Louis Dionne 2013-2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include <boost/hana/bool.hpp>
#include <boost/hana/experimental/types.hpp>
#include <boost/hana/replace_if.hpp>
#include <boost/hana/type.hpp>
namespace hana = boost::hana;
struct predicate { hana::true_ operator()(...) const; };
int main() {
auto types = hana::experimental::types<void, void>{};
hana::replace_if(types, predicate{}, hana::type<struct anything>{});
}
|