Explicitly convert data_ to a pointer

This commit is contained in:
Krystian Stasiowski
2019-12-16 19:01:32 -05:00
parent d16e35cc0b
commit 89da9ec945
3 changed files with 15 additions and 6 deletions

View File

@ -12,7 +12,7 @@
#define BOOST_STATIC_STRING_CONFIG_HPP
// Are we dependent on Boost?
// #define BOOST_STATIC_STRING_STANDALONE
#define BOOST_STATIC_STRING_STANDALONE
// Disable exceptions and their associated checks
// #define BOOST_STATIC_STRING_NO_EXCEPTIONS

View File

@ -76,14 +76,14 @@ public:
CharT*
data_impl() noexcept
{
return data_;
return +data_;
}
BOOST_STATIC_STRING_CPP14_CONSTEXPR
CharT const*
data_impl() const noexcept
{
return data_;
return +data_;
}
BOOST_STATIC_STRING_CPP11_CONSTEXPR
@ -171,14 +171,14 @@ public:
CharT*
data_impl() noexcept
{
return data_;
return +data_;
}
BOOST_STATIC_STRING_CPP14_CONSTEXPR
CharT const*
data_impl() const noexcept
{
return data_;
return +data_;
}
BOOST_STATIC_STRING_CPP11_CONSTEXPR