We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 611b910 + 9cd1e56 commit 4f19015Copy full SHA for 4f19015
src/util/as_const.h
@@ -16,4 +16,8 @@ const T &as_const(T &value)
16
return static_cast<const T &>(value);
17
}
18
19
+/// Deleted to avoid calling as_const on an xvalue
20
+template <typename T>
21
+void as_const(T &&) = delete;
22
+
23
#endif // CPROVER_UTIL_AS_CONST_H
0 commit comments