未验证 提交 6b09b73e 编写于 作者: Z Zeng Jinle 提交者: GitHub

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

上级 ac854670
...@@ -114,7 +114,7 @@ class InferNoNeedBufferVarsFN { ...@@ -114,7 +114,7 @@ class InferNoNeedBufferVarsFN {
return (*inferer_)(ctx); 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; } inline bool operator!() const { return inferer_ == nullptr; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册