add explicit conversion to NoNeedBufferVarsFunctor, test=develop (#21430)

revert-21172-masked_select_api
Zeng Jinle 6 years ago committed by GitHub
parent ac8546701d
commit 6b09b73e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -114,7 +114,7 @@ class InferNoNeedBufferVarsFN {
return (*inferer_)(ctx);
}
inline operator bool() const { return inferer_ != nullptr; }
inline explicit operator bool() const { return inferer_ != nullptr; }
inline bool operator!() const { return inferer_ == nullptr; }

Loading…
Cancel
Save