Skip to content

Commit 7c9f8bd

Browse files
author
Daniel Kroening
committed
deprecate partial constructors for constant_exprt
1 parent c92033f commit 7c9f8bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/std_expr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4092,10 +4092,12 @@ class type_exprt:public exprt
40924092
class constant_exprt:public exprt
40934093
{
40944094
public:
4095+
DEPRECATED("use constant_exprt(value, type) instead")
40954096
constant_exprt():exprt(ID_constant)
40964097
{
40974098
}
40984099

4100+
DEPRECATED("use constant_exprt(value, type) instead")
40994101
explicit constant_exprt(const typet &type):exprt(ID_constant, type)
41004102
{
41014103
}

0 commit comments

Comments
 (0)