diff --git a/toml/value.hpp b/toml/value.hpp index 52d7b43..c0ee601 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -509,7 +509,7 @@ class basic_value : type_(value_t::floating), region_info_(std::make_shared(region_base{})) { - assigner(this->floating_, f); + assigner(this->floating_, static_cast(f)); } template>(std::move(reg))), comments_(region_info_->comments()) { - assigner(this->floating_, f); + assigner(this->floating_, static_cast(f)); } templatecleanup(); this->type_ = value_t::floating; this->region_info_ = std::make_shared(region_base{}); - assigner(this->floating_, f); + assigner(this->floating_, static_cast(f)); return *this; }