diff --git a/toml/value.hpp b/toml/value.hpp index 4f6730b..010c4f4 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -669,7 +669,7 @@ typename detail::toml_default_type::type& value::cast() & if(T != this->type_) { throw type_error(this->format_error(concat_to_string( - "[error] toml::value bad_cast type-casting to ", T), + "[error] toml::value bad_cast to ", T), concat_to_string("the actual type is ", this->type_))); } return switch_cast::invoke(*this); @@ -680,7 +680,7 @@ typename detail::toml_default_type::type const& value::cast() const& if(T != this->type_) { throw type_error(this->format_error(concat_to_string( - "[error] toml::value bad_cast type-casting to ", T), + "[error] toml::value bad_cast to ", T), concat_to_string("the actual type is ", this->type_))); } return switch_cast::invoke(*this); @@ -691,7 +691,7 @@ typename detail::toml_default_type::type&& value::cast() && if(T != this->type_) { throw type_error(this->format_error(concat_to_string( - "[error] toml::value bad_cast type-casting to ", T), + "[error] toml::value bad_cast to ", T), concat_to_string("the actual type is ", this->type_))); } return switch_cast::invoke(std::move(*this));