Skip to content

Commit 3cf880e

Browse files
authored
[fix] 修复 toolkit::Any::empty() 返回always true 问题(#263) (#265)
1 parent b947fd2 commit 3cf880e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util/util.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ class Any {
472472
}
473473

474474
operator bool() const { return _data.operator bool(); }
475-
bool empty() const { return !bool(); }
475+
bool empty() const { return !operator bool(); }
476476

477477
void reset() {
478478
_type = nullptr;

0 commit comments

Comments
 (0)