Mutable Field

Sandro Ferreira <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Hello,

I'm creating a binding for one library that have one class with mutable
field, which the best way to bind this field?

.def_readwrite work only for non const class.
With the error message for const instance:
"No matching overload found, candidates: void <unknown>(CMod1&,int const&)",
where the mutable field is an integer.

.property work, but is this the only solution for this case?

Thanks,
-- 
Sandro Souza Ferreira

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.