From 06086a9ff75ecc5f9372d4c34dfc69d8190a6873 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 9 Oct 2019 21:09:38 +0900 Subject: [PATCH] doc: add note about value::at --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 222de08..9248db4 100644 --- a/README.md +++ b/README.md @@ -470,6 +470,10 @@ If an invalid key (integer for a table, string for an array), it throws `toml::type_error` for the conversion. If the provided key is out-of-range, it throws `std::out_of_range`. +Note that, although `std::string` has `at()` member function, `toml::value::at` +throws if the contained type is a string. Because `std::string` does not +contain `toml::value`. + ## Checking value type You can check the type of a value by `is_xxx` function.