forked from boostorg/static_string
Explicitly convert data_ to a pointer
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user