mirror of
https://github.com/kennethreitz/static_string.git
synced 2026-06-05 23:00:20 +00:00
A object pointer value is only a constant expression if it points to an object with static storage duration.
This commit is contained in:
@@ -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