Skip to content
Permalink
Browse files
fix functions that take references by not copying the arguments
  • Loading branch information
pisto committed Mar 26, 2014
1 parent 04a9950 commit 22e0501e5545a35221409976271d00622e13a27a
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/LuaBridge/detail/TypeList.h
@@ -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_)

0 comments on commit 22e0501

Please sign in to comment.