mirror of
https://github.com/boostorg/hana.git
synced 2026-01-22 17:22:30 +00:00
24 lines
595 B
C++
24 lines
595 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/assert.hpp>
|
|
#include <boost/hana/core/make.hpp>
|
|
#include <boost/hana/tuple.hpp>
|
|
|
|
#include <string>
|
|
using namespace boost::hana;
|
|
|
|
|
|
int main() {
|
|
//! [main]
|
|
auto foo = make<std::string>("foo");
|
|
BOOST_HANA_RUNTIME_CHECK(foo == "foo");
|
|
|
|
auto ts = make<Tuple>(1, '2', 3.3, std::string{"abcd"});
|
|
BOOST_HANA_RUNTIME_CHECK(ts == tuple(1, '2', 3.3, std::string{"abcd"}));
|
|
//! [main]
|
|
}
|