Skip to content

Commit 7c370e6

Browse files
committed
vfvalue
1 parent e0d8dfe commit 7c370e6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/vfvalue.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,11 @@ namespace ValueFlow
168168
return !(*this == rhs);
169169
}
170170

171-
// TODO: allow __int128
171+
#if defined(HAVE_INT128) && !defined(HAVE_BOOST_INT128)
172+
template<class T>
173+
#else
172174
template<class T, REQUIRES("T must be an arithmetic type", std::is_arithmetic<T> )>
175+
#endif
173176
bool equalTo(const T& x) const {
174177
bool result = false;
175178
visitValue(*this, std::bind(equalVisitor{}, std::ref(result), x, std::placeholders::_1));

0 commit comments

Comments
 (0)