2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-02 08:52:11 +00:00
Files
hana/test/core/default.cpp
2015-03-03 14:16:50 -05:00

21 lines
465 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/core/default.hpp>
using namespace boost::hana;
template <typename T>
struct method_impl : default_ { };
template <>
struct method_impl<int> { };
static_assert(is_default<method_impl<void>>{}, "");
static_assert(!is_default<method_impl<int>>{}, "");
int main() { }