diff --git a/include/boost/algorithm/string/detail/classification.hpp b/include/boost/algorithm/string/detail/classification.hpp index 3930655..2fa3b6d 100644 --- a/include/boost/algorithm/string/detail/classification.hpp +++ b/include/boost/algorithm/string/detail/classification.hpp @@ -166,7 +166,7 @@ namespace boost { else { // Use dynamic storage - m_Storage.m_dynSet=new set_value_type[Size]; + m_Storage.m_dynSet=new set_value_type[m_Size]; DestStorage=m_Storage.m_dynSet; SrcStorage=Other.m_Storage.m_dynSet; } @@ -190,9 +190,6 @@ namespace boost { } private: - // set cannot operate on const value-type - typedef typename remove_const::type set_value_type; - // storage // The actual used storage is selected on the type union @@ -206,47 +203,6 @@ namespace boost { ::std::size_t m_Size; }; - // fixed size is_any_of functor - /* - returns true if the value is from the specified set - works on the fixed size set - */ - template - struct is_any_of_fixedF : - public predicate_facade > - { - // Boost.Lambda support - template struct sig { typedef bool type; }; - - // Constructor - template - is_any_of_fixedF( const RangeT& Range ) - { - BOOST_ASSERT(::boost::distance(Range)==Size); - // Copy up-to Size elements - ::std::size_t nIndex=0; - ::boost::range_const_iterator::type It=::boost::begin(Range); - while(nIndex - bool operator()( Char2T Ch ) const - { - return ::std::binary_search(&m_Set[0], &m_Set[Size], Ch); - } - - private: - // set cannot operate on const value-type - typedef typename remove_const::type set_value_type; - set_value_type m_Set[Size]; - }; - - // is_from_range functor /* returns true if the value is from the specified range.