2
0
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:
Louis Dionne
2015-05-02 14:43:10 -04:00
parent 65834220b7
commit dc56f6cebc
9 changed files with 169 additions and 82 deletions

View File

@@ -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"),