Hi,
I do not write:
Usually when you overload an operator we write:Code:1. operator T & () const;
There it nor have no return type and type operator after need explanation.Code:1. bool operator = (int a)
Hi,
I do not write:
Usually when you overload an operator we write:Code:1. operator T & () const;
There it nor have no return type and type operator after need explanation.Code:1. bool operator = (int a)
It was an opera to cast. If you have a class A and you want IMPLIED allowed his cast to B, you set an operator of the form.
operator B (). Only for the name of the operator is the return type.
I used this some time ago already, to make co-simulation and co-verification. It works well, is multi-platform, and to make the simulation equipment is _excellent_.
Bookmarks