2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-02 08:52:11 +00:00
Files
hana/test/tuple.tuple_t_adl.cpp
Louis Dionne 41914809a2 [Travis/Test] Clean up and modularization
- Properly setup build matrix
- Clean up .travis.yml
- Try building with Boost 1.57 and Boost 1.58
- Install dependencies to the deps/ subdirectory
- Reduce memory usage of test/type.cpp
- Re-enable some Fusion tests
2015-03-19 12:45:26 -04:00

22 lines
579 B
C++

/*
@copyright Louis Dionne 2015
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/tuple.hpp>
using namespace boost::hana;
template <bool b = false>
struct invalid { static_assert(b, "invalid must not be instantiated"); };
template <typename T> void adl(T) { }
template <typename ...T> void adl_pattern(_tuple_t<T...>) { }
int main() {
// ADL kicks in but `invalid<>` must not instantiated
adl(tuple_t<invalid<>>);
adl_pattern(tuple_t<invalid<>>);
}