mirror of
https://github.com/boostorg/hana.git
synced 2026-01-23 05:32:13 +00:00
30 lines
702 B
C++
30 lines
702 B
C++
/*
|
|
@copyright Louis Dionne 2014
|
|
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/operators.hpp>
|
|
|
|
|
|
namespace boost { namespace hana { namespace operators {
|
|
template <typename T, typename U>
|
|
void operator+(T&&, U&&) { }
|
|
}}}
|
|
|
|
template <typename = boost::hana::operators::enable_adl>
|
|
struct template_param { };
|
|
|
|
struct inheritance : boost::hana::operators::enable_adl { };
|
|
|
|
struct nothing { };
|
|
|
|
|
|
int main() {
|
|
(void)(template_param<>{} + nothing{});
|
|
(void)(nothing{} + template_param<>{});
|
|
|
|
(void)(inheritance{} + nothing{});
|
|
(void)(nothing{} + inheritance{});
|
|
}
|