Sync AMTL from upstream

This commit is contained in:
Arkshine
2014-09-29 18:36:37 +02:00
parent e7452e00ce
commit 35e661fdf9
5 changed files with 62 additions and 6 deletions

View File

@@ -143,6 +143,11 @@ class PassRef
bool operator !() const {
return !thing_;
}
#if defined(KE_CXX11)
explicit operator bool() const {
return !!thing_;
}
#endif
T *release() const {
return ReturnAndVoid(thing_);