forked from boostorg/static_string
Explicitly convert data_ to a pointer
This commit is contained in:
11
.travis.yml
11
.travis.yml
@ -230,7 +230,16 @@ jobs:
|
|||||||
script:
|
script:
|
||||||
- cd $BOOST_ROOT/libs/$SELF
|
- cd $BOOST_ROOT/libs/$SELF
|
||||||
- ci/travis/coverity.sh
|
- ci/travis/coverity.sh
|
||||||
|
|
||||||
|
# Standalone tests for StaticString
|
||||||
|
- { os: "linux", env: [ "COMMENT=STANDALONE", "B2_TOOLSET=gcc-7", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17" ], addons: *gcc-7 }
|
||||||
|
- { os: "linux", env: [ "COMMENT=STANDALONE", "B2_TOOLSET=gcc-8", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17,2a" ], addons: *gcc-8 }
|
||||||
|
- { os: "linux", env: [ "COMMENT=STANDALONE", "B2_TOOLSET=gcc-9", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17,2a" ], addons: *gcc-9 }
|
||||||
|
- { os: "linux", env: [ "COMMENT=STANDALONE", "B2_TOOLSET=clang-6.0", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17" ], addons: *clang-6 }
|
||||||
|
- { os: "linux", env: [ "COMMENT=STANDALONE", "B2_TOOLSET=clang-7", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17,2a" ], addons: *clang-7 }
|
||||||
|
- { os: "linux", env: [ "COMMENT=STANDALONE", "B2_TOOLSET=clang-8", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17,2a" ], addons: *clang-8 }
|
||||||
|
- { os: "osx" , env: [ "COMMENT=STANDALONE", "B2_TOOLSET=clang", "B2_DEFINES=define=BOOST_STATIC_STRING_STANDALONE", "B2_CXXSTD=17" ] }
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
false
|
false
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#define BOOST_STATIC_STRING_CONFIG_HPP
|
#define BOOST_STATIC_STRING_CONFIG_HPP
|
||||||
|
|
||||||
// Are we dependent on Boost?
|
// Are we dependent on Boost?
|
||||||
// #define BOOST_STATIC_STRING_STANDALONE
|
#define BOOST_STATIC_STRING_STANDALONE
|
||||||
|
|
||||||
// Disable exceptions and their associated checks
|
// Disable exceptions and their associated checks
|
||||||
// #define BOOST_STATIC_STRING_NO_EXCEPTIONS
|
// #define BOOST_STATIC_STRING_NO_EXCEPTIONS
|
||||||
|
@ -76,14 +76,14 @@ public:
|
|||||||
CharT*
|
CharT*
|
||||||
data_impl() noexcept
|
data_impl() noexcept
|
||||||
{
|
{
|
||||||
return data_;
|
return +data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_STATIC_STRING_CPP14_CONSTEXPR
|
BOOST_STATIC_STRING_CPP14_CONSTEXPR
|
||||||
CharT const*
|
CharT const*
|
||||||
data_impl() const noexcept
|
data_impl() const noexcept
|
||||||
{
|
{
|
||||||
return data_;
|
return +data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_STATIC_STRING_CPP11_CONSTEXPR
|
BOOST_STATIC_STRING_CPP11_CONSTEXPR
|
||||||
@ -171,14 +171,14 @@ public:
|
|||||||
CharT*
|
CharT*
|
||||||
data_impl() noexcept
|
data_impl() noexcept
|
||||||
{
|
{
|
||||||
return data_;
|
return +data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_STATIC_STRING_CPP14_CONSTEXPR
|
BOOST_STATIC_STRING_CPP14_CONSTEXPR
|
||||||
CharT const*
|
CharT const*
|
||||||
data_impl() const noexcept
|
data_impl() const noexcept
|
||||||
{
|
{
|
||||||
return data_;
|
return +data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_STATIC_STRING_CPP11_CONSTEXPR
|
BOOST_STATIC_STRING_CPP11_CONSTEXPR
|
||||||
|
Reference in New Issue
Block a user