Closed ThePhD closed 9 years ago
This looks like an API breaking change. If it is, then it might be postponed to v2.0.0 of sol rather than v1.2.0.
It's a breaking change of behavior, so this should probably be made a v2.0.0 change.
This pull-request's semantics have been sucked into #51 's change log, since it was necessary in the API fixing.
This pull request ensures proper
std::ref
semantics and makesget
andset
ontable
obey those semantics.A
sol::ref
type was added to make thelua.get<sol::ref<T>>
less painful thanlua.get<std::reference_wrapper<T>>
syntax, andsol::ref<T>
is just a using alias forstd::reference_wrapper
.