Skip to content

Commit 2f42158

Browse files
committed
Fix data member
1 parent 6f51253 commit 2f42158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/decimal/decimal_fast64_t.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ constexpr decimal_fast64_t::decimal_fast64_t(const char* str) : decimal_fast64_t
591591
#ifndef BOOST_DECIMAL_HAS_STD_STRING_VIEW
592592
inline decimal_fast64_t::decimal_fast64_t(const std::string& str) : decimal_fast64_t(str.c_str(), str.size()) {}
593593
#else
594-
constexpr decimal_fast64_t::decimal_fast64_t(std::string_view str) : decimal_fast64_t(str.c_str(), str.size()) {}
594+
constexpr decimal_fast64_t::decimal_fast64_t(std::string_view str) : decimal_fast64_t(str.data(), str.size()) {}
595595
#endif
596596

597597
constexpr auto signbit(const decimal_fast64_t val) noexcept -> bool

0 commit comments

Comments
 (0)