|
-
June 11th, 2008, 05:56 PM
#1
Use of operator keyword
Hi everyone,
Can anyone help me in understanding the use of operator keyword in the following code -
class Font {
public:
...
operator FontHandle() const { return f; }
...
private:
FontHandle f;
};
I know the behaviour of this operator member, whenever the obj of Font class is used in an expression, this operator member is invoked. But I(with my limited knowledge of c++) cannot understand this declaration.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|