mirror of
https://github.com/boostorg/hana.git
synced 2026-02-01 08:32:11 +00:00
[String] Add conversion to char const* and minor refactoring
Also - remove useless value_type alias in String since it's not a Constant - document why the interface is so minimal
This commit is contained in:
@@ -38,7 +38,7 @@ int main() {
|
||||
|
||||
BOOST_HANA_RUNTIME_CHECK(find(john, BOOST_HANA_STRING("name")) == just("John"));
|
||||
BOOST_HANA_RUNTIME_CHECK(find(john, BOOST_HANA_STRING("age")) == just(30));
|
||||
BOOST_HANA_CONSTANT_CHECK(find(john, BOOST_HANA_STRING("not_a_member")) == nothing);
|
||||
BOOST_HANA_CONSTANT_CHECK(find(john, BOOST_HANA_STRING("foo")) == nothing);
|
||||
|
||||
BOOST_HANA_RUNTIME_CHECK(to<Tuple>(john) == make<Tuple>(
|
||||
make<Pair>(BOOST_HANA_STRING("name"), "John"),
|
||||
|
||||
Reference in New Issue
Block a user