File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -30,16 +30,14 @@ namespace tao
30
30
std::string m_key;
31
31
32
32
public:
33
- static const std::size_t npos = std::string::npos;
34
-
35
33
explicit token ( const std::string & key )
36
34
: m_index( internal::token_to_index( key ) ),
37
35
m_key( key )
38
36
{ }
39
37
40
38
explicit token ( std::string && key )
41
- : m_index( internal::token_to_index( key ) ),
42
- m_key( std::move( key ) )
39
+ : m_index( internal::token_to_index( key ) ),
40
+ m_key( std::move( key ) )
43
41
{ }
44
42
45
43
token ( const token & ) = default ;
@@ -63,7 +61,7 @@ namespace tao
63
61
64
62
std::size_t index () const
65
63
{
66
- if ( m_index == npos ) {
64
+ if ( m_index == std::string:: npos ) {
67
65
throw std::invalid_argument ( " unable to resolve JSON Pointer, invalid token for array access '" + m_key + ' \' ' );
68
66
}
69
67
return m_index;
@@ -229,7 +227,7 @@ namespace tao
229
227
}
230
228
}
231
229
}
232
- return token ::npos;
230
+ return std::string ::npos;
233
231
}
234
232
235
233
inline std::string tokens_to_string ( std::vector< token >::const_iterator it, const std::vector< token >::const_iterator & end )
You can’t perform that action at this time.
0 commit comments