Skip to content

Commit b70313b

Browse files
Added can_cast_type implementation for code_typet
1 parent 05bebb7 commit b70313b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/util/std_types.h

+7
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,13 @@ inline code_typet &to_code_type(typet &type)
999999
return static_cast<code_typet &>(type);
10001000
}
10011001

1002+
template <>
1003+
inline bool can_cast_type<code_typet>(const typet &type)
1004+
{
1005+
return type.id() == ID_code;
1006+
}
1007+
1008+
10021009
/*! \brief arrays with given size
10031010
*/
10041011
class array_typet:public type_with_subtypet

0 commit comments

Comments
 (0)