1/*=============================================================================
2 Copyright (c) 2016 Paul Fultz II
3 using.hpp
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6==============================================================================*/
7
8#ifndef BOOST_HOF_GUARD_USING_HPP
9#define BOOST_HOF_GUARD_USING_HPP
10
11#include <boost/hof/config.hpp>
12
13#if BOOST_HOF_HAS_TEMPLATE_ALIAS
14#define BOOST_HOF_USING(name, ...) using name = __VA_ARGS__
15#define BOOST_HOF_USING_TYPENAME(name, ...) using name = typename __VA_ARGS__
16#else
17#define BOOST_HOF_USING(name, ...) struct name : std::enable_if<true, __VA_ARGS__>::type {}
18#define BOOST_HOF_USING_TYPENAME(name, ...) struct name : __VA_ARGS__ {}
19#endif
20
21#endif
22

source code of boost/libs/hof/include/boost/hof/detail/using.hpp