summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/hana/test/type/nested_type.cpp
blob: 6e0410dffe81605ace698c645eb8222143a72e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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/type.hpp>

#include <type_traits>
namespace hana = boost::hana;


// Makes sure that `hana::type`s have a nested ::type alias

struct T;

static_assert(std::is_same<decltype(hana::type_c<T>)::type, T>{}, "");
static_assert(std::is_same<hana::type<T>::type, T>{}, "");

int main() { }