Previously the "Safe Bool Idiom" was implemented using a typedef ... Testable work around. The C++11 explicit conversion operator feature
is now available and this hack is no longer required.
I haven't seen anyone tackle scoped_refptr::operator bool() yet.
Issue 605794 is marked blocked on an investigation of performance
regressions when making the switch for WTF::RefPtr, apparently because
precisely how you choose to coerce pointer->bool at call-sites that need it
affects whether the optimizer works effectively. :(
Comment 1 by scheib@chromium.org
, May 7 2016