forked from boostorg/static_string
Remove unused alias, explicitly specify private inheritence
This commit is contained in:
@ -688,7 +688,7 @@ template<
|
|||||||
typename Traits = std::char_traits<CharT>>
|
typename Traits = std::char_traits<CharT>>
|
||||||
class basic_static_string
|
class basic_static_string
|
||||||
#ifndef GENERATING_DOCUMENTATION
|
#ifndef GENERATING_DOCUMENTATION
|
||||||
: detail::optimization_base<N, CharT, Traits>
|
: private detail::optimization_base<N, CharT, Traits>
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
@ -701,9 +701,6 @@ private:
|
|||||||
{
|
{
|
||||||
this->term_impl();
|
this->term_impl();
|
||||||
}
|
}
|
||||||
|
|
||||||
using base = detail::optimization_base<N, CharT, Traits>;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
|
@ -193,6 +193,7 @@ testConstantEvaluation()
|
|||||||
a.replace(a.begin(), a.end(), {'a'});
|
a.replace(a.begin(), a.end(), {'a'});
|
||||||
|
|
||||||
#ifdef BOOST_STATIC_STRING_IS_CONST_EVAL
|
#ifdef BOOST_STATIC_STRING_IS_CONST_EVAL
|
||||||
|
a.clear();
|
||||||
a.replace(a.begin(), a.end(), "a");
|
a.replace(a.begin(), a.end(), "a");
|
||||||
a.replace(a.begin(), a.end(), "a", 1);
|
a.replace(a.begin(), a.end(), "a", 1);
|
||||||
#endif
|
#endif
|
||||||
@ -382,6 +383,7 @@ testConstantEvaluation()
|
|||||||
a.replace(a.begin(), a.end(), {'a'});
|
a.replace(a.begin(), a.end(), {'a'});
|
||||||
|
|
||||||
#ifdef BOOST_STATIC_STRING_IS_CONST_EVAL
|
#ifdef BOOST_STATIC_STRING_IS_CONST_EVAL
|
||||||
|
a.clear();
|
||||||
a.replace(a.begin(), a.end(), "a");
|
a.replace(a.begin(), a.end(), "a");
|
||||||
a.replace(a.begin(), a.end(), "a", 1);
|
a.replace(a.begin(), a.end(), "a", 1);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user