Skip to content

Commit 5133c74

Browse files
committed
Re-use definition from std::string
1 parent a2513f7 commit 5133c74

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/tao/json/pointer.hh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <utility>
1010
#include <stdexcept>
1111
#include <vector>
12-
#include <limits>
1312

1413
#include "external/operators.hpp"
1514

@@ -31,7 +30,7 @@ namespace tao
3130
std::string m_key;
3231

3332
public:
34-
static const std::size_t npos = std::numeric_limits<size_t>::max();
33+
static const std::size_t npos = std::string::npos;
3534

3635
explicit token( const std::string & key )
3736
: m_index( internal::token_to_index( key ) ),

0 commit comments

Comments
 (0)