Changed value parameter to reference parameter in FunctorBase and FunctorVoidBase Ctors
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@137 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
15f21dd90a
commit
eb9cb926a9
1 changed files with 2 additions and 2 deletions
|
@ -1219,7 +1219,7 @@ namespace Private
|
|||
FunctorBase() : spImpl_() {}
|
||||
|
||||
template <class Fun, class MyFunctor>
|
||||
FunctorBase(Fun fun, Loki::Type2Type<MyFunctor>)
|
||||
FunctorBase(const Fun& fun, Loki::Type2Type<MyFunctor>)
|
||||
: spImpl_(new FunctorHandler<MyFunctor, Fun>(fun))
|
||||
{}
|
||||
|
||||
|
@ -1339,7 +1339,7 @@ namespace Private
|
|||
FunctorVoidBase() : spImpl_() {}
|
||||
|
||||
template <class Fun, class MyFunctor>
|
||||
FunctorVoidBase(Fun fun, Loki::Type2Type<MyFunctor>)
|
||||
FunctorVoidBase(const Fun& fun, Loki::Type2Type<MyFunctor>)
|
||||
: spImpl_(new FunctorHandler<MyFunctor, Fun>(fun))
|
||||
{}
|
||||
|
||||
|
|
Loading…
Reference in a new issue