billyquith / ponder

C++ reflection library with Lua binding, and JSON and XML serialisation.
http://billyquith.github.io/ponder/
Other
640 stars 93 forks source link

operator overloads supported? #33

Closed underdoeg closed 8 years ago

underdoeg commented 8 years ago

I couldn't find anything in the docs. Can ponder also handle operator overloads?

billyquith commented 8 years ago

In what sense? Can you register a function that is an operator overload? Yes. Can you call it using operator overload notation? No, the API is different, not C++.

underdoeg commented 8 years ago

In the sense that I'll know afterwards that this is an operator overload when I look at the class description?

billyquith commented 8 years ago

You could add a tag to it to denote this. There is not specified format for that. You can add arbitrary data to members.

underdoeg commented 8 years ago

ok. thx for the info!