Mercurial > code
changeset 647:0557eea4d373
is_boolean: use trailing return syntax
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 01 Aug 2018 14:08:40 +0200 |
parents | cba9782e10a7 |
children | 5bd9424a523a |
files | cpp/is_boolean/is_boolean.hpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cpp/is_boolean/is_boolean.hpp Wed Aug 01 14:08:19 2018 +0200 +++ b/cpp/is_boolean/is_boolean.hpp Wed Aug 01 14:08:40 2018 +0200 @@ -30,7 +30,7 @@ * \return true if is boolean * \note this function is case-insensitive */ -inline bool is_boolean(std::string value) noexcept +inline auto is_boolean(std::string value) noexcept -> bool { std::transform(value.begin(), value.end(), value.begin(), [] (auto c) noexcept { return toupper(c);