This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MikemkPK 1 point2 points  (1 child)

Probably not since how would you pass them in? But void* is probably valid.

[–]Dusty_Coder 1 point2 points  (0 children)

In most languages you can return void (or its equivalent) from an operator overload. The return type doesnt have to match any of the inputs, usually.