ue2_literal: define npos in ue2string.cpp

This commit is contained in:
Justin Viiret 2017-08-16 13:13:06 +10:00 committed by Matthew Barr
parent 85c8822dd1
commit 012b347284
2 changed files with 4 additions and 1 deletions

View File

@ -237,6 +237,8 @@ ue2_literal::elem::operator CharReach () const {
}
}
const ue2_literal::size_type ue2_literal::npos = std::string::npos;
ue2_literal::ue2_literal(const std::string &s_in, bool nc_in)
: s(nc_in ? toUpperString(s_in) : s_in), nocase(s_in.size()) {
if (nc_in) {

View File

@ -138,7 +138,8 @@ public:
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
using size_type = std::string::size_type;
static const size_type npos = std::string::npos;
static const size_type npos;
ue2_literal() = default;
ue2_literal(const std::string &s_in, bool nc_in);