From 1bf9e42835a72056dfe6a5cd8dccd846f8d0fcda Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 19 Jun 2019 21:12:05 +0900 Subject: [PATCH] chore: update version --- CMakeLists.txt | 4 ++-- README.md | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d359148..f25812d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,8 +4,8 @@ enable_testing() project(toml11) set(toml11_VERSION_MAYOR 2) -set(toml11_VERSION_MINOR 3) -set(toml11_VERSION_PATCH 1) +set(toml11_VERSION_MINOR 4) +set(toml11_VERSION_PATCH 0) set(toml11_VERSION "${toml11_VERSION_MAYOR}.${toml11_VERSION_MINOR}.${toml11_VERSION_PATCH}" ) diff --git a/README.md b/README.md index 011ed0c..394cb54 100644 --- a/README.md +++ b/README.md @@ -443,6 +443,10 @@ toml::integer opt = 42; toml::integer& i = toml::get_or(v, opt); // this works. ``` +There is also a function `find_or`, but there is a known issue around overload +resolution. To use it, passing a `toml::value`, not a `toml::table`, is strongly +recommended. + ## Expecting conversion By using `toml::expect`, you will get your expected value or an error message