Mutable Field

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Mutable Field

Sandro Ferreira
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: Mutable Field

Daniel Wallin
Sandro Ferreira wrote:

> 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?

Yes, I'm afraid it is.

--
Daniel Wallin
BoostPro Computing
http://www.boostpro.com

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user