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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user