We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4be4eae commit 600daffCopy full SHA for 600daff
boost/network/uri/uri.hpp
@@ -310,7 +310,10 @@ inline bool operator==(const uri::string_type &lhs, const uri &rhs) {
310
}
311
312
inline bool operator==(const uri &lhs, const uri::value_type *rhs) {
313
- return boost::equal(lhs, boost::as_literal(rhs));
+ auto rlen = strlen(rhs);
314
+ auto llen = std::distance(lhs.begin(), lhs.end());
315
+ if (rlen != std::abs(llen)) return false;
316
+ return boost::equal(lhs, boost::make_iterator_range(rhs, rhs + rlen));
317
318
319
inline bool operator==(const uri::value_type *lhs, const uri &rhs) {
0 commit comments