Details
- Reviewers
dblaikie
Diff Detail
Event Timeline
I suspect the primary bug here is that operator bool should be
explicit. Could you send a review for that too? (& verify that it
would've made the example given in PR10140 fail to compile, instead of
comparing booleans? (without the const patch applied))
In any case, I'll sign off on this change to add "const" - please go
ahead and commit.
Tests fail with original code. Tests don't compile if only conversion operator is marked as explicit. Const qualifying comparison operators gets the tests to compile and pass.
Oh, you don't need to create a separate class for the tests, just using "TEST(Grouping, Testname)" will work fine.
Please commit after you've made that change (removed "PooledStringPtrTest" class and changed from TEST_F to TEST macros).
Thanks for the work. For future reference I was suggesting that "adding explicit" could be done as a separate step, but it's fine together too. Thanks again.