Issue with find and npos
authorRajat Goel <rajatgoel2010@fb.com>
Wed, 16 Oct 2013 00:25:36 +0000 (17:25 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 24 Oct 2013 21:53:41 +0000 (14:53 -0700)
commitb3cd8a1b13768b387e9e933333788526e548a6ea
tree96dc1c2f5efdf9fa93b54b53fc09dabd2135433d
parentb604632b63336e331f51ec7aa323c7377da51896
Issue with find and npos

Summary:
I dont know whats the expected behavior but for std::string it seems
to work.

@override-unit-failures

Test Plan:
unit-tests

[ RUN      ] FBString.findWithNpos
folly/test/FBStringTest.cpp:1147: Failure
Value of: fbstr.find(":", fbstring::npos)
Actual: 9
Expected: fbstring::npos
Which is: 18446744073709551615

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D1012870
folly/FBString.h
folly/test/FBStringTest.cpp