2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-08 23:02:10 +00:00

Refactor examples and fix broken links

This commit is contained in:
Louis Dionne
2014-08-30 17:18:26 -04:00
parent 8f593765a8
commit 028e672822
31 changed files with 370 additions and 490 deletions

View File

@@ -4,9 +4,9 @@ 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/detail/assert.hpp>
#include <boost/hana/type.hpp>
#include <cassert>
#include <string>
using namespace boost::hana;
@@ -22,6 +22,6 @@ bool operator==(Person x, Person y)
int main() {
Person john{"John Doe", 30};
assert(type<Person>("John Doe", 30u) == john);
BOOST_HANA_RUNTIME_ASSERT(type<Person>("John Doe", 30u) == john);
}
//! [main]