mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
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:
parent
9c016c619f
commit
6dc3bdf252
1 changed files with 2 additions and 2 deletions
|
|
@ -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_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue