Skip to content

Commit

Permalink
fix functions that take references by not copying the arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
pisto committed Mar 26, 2014
1 parent 04a9950 commit 22e0501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/LuaBridge/detail/TypeList.h
Expand Up @@ -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_)
Expand All @@ -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_)
Expand Down

0 comments on commit 22e0501

Please sign in to comment.