1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix explicit conversion: optional::operator bool, string::operator std::string, string_ref::operator std::string

This commit is contained in:
bolero-MURAKAMI 2013-05-28 12:36:36 +09:00
parent e5efbfe340
commit 7f6081e0cc
5 changed files with 15 additions and 16 deletions

View file

@ -294,7 +294,7 @@ namespace sprout {
;
}
SPROUT_CONSTEXPR operator bool() const SPROUT_NOEXCEPT {
SPROUT_EXPLICIT_CONVERSION SPROUT_CONSTEXPR operator bool() const SPROUT_NOEXCEPT {
return is_initialized();
}
SPROUT_CONSTEXPR bool operator!() const SPROUT_NOEXCEPT {