13
0

Fix LuaBindings TypeList copy-ctor

Determining the class type copy constructed references.
Const-references passed to C++ functions were copies.
This commit is contained in:
Robin Gareus 2017-03-18 18:28:44 +01:00
parent 9c016c619f
commit 6dc3bdf252

View File

@ -99,7 +99,7 @@ struct TypeListValues <TypeList <Head, Tail> >
template <typename Head, typename Tail>
struct TypeListValues <TypeList <Head&, Tail> >
{
Head hd;
Head& hd;
TypeListValues <Tail> tl;
TypeListValues (Head& hd_, TypeListValues <Tail> const& tl_)
@ -123,7 +123,7 @@ struct TypeListValues <TypeList <Head&, Tail> >
template <typename Head, typename Tail>
struct TypeListValues <TypeList <Head const&, Tail> >
{
Head hd;
const Head& hd;
TypeListValues <Tail> tl;
TypeListValues (Head const& hd_, const TypeListValues <Tail>& tl_)