From e17fa6591838718567aa0b18bda7bb1e39e1821d Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 9 Oct 2013 08:02:57 -0600 Subject: [PATCH] Fix PosToString duplicate definiton Since SBuf::size_type and std::string::size_type are now both unsigned and npos is the same value in both this function is a duplicate and the stricter compilers complain. --- src/tests/SBufFindTest.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/SBufFindTest.cc b/src/tests/SBufFindTest.cc index 5e436f5d21..16de357a98 100644 --- a/src/tests/SBufFindTest.cc +++ b/src/tests/SBufFindTest.cc @@ -189,12 +189,14 @@ AnyToString(const Type &value) return sbuf.str(); } +#if 0 /// helper function to convert SBuf position to a human-friendly string inline std::string PosToString(const SBuf::size_type pos) { return pos == SBuf::npos ? std::string("npos") : AnyToString(pos); } +#endif /// helper function to convert std::string position to a human-friendly string inline std::string -- 2.47.3