diff options
Diffstat (limited to 'sca-cpp/trunk/kernel/function.hpp')
-rw-r--r-- | sca-cpp/trunk/kernel/function.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sca-cpp/trunk/kernel/function.hpp b/sca-cpp/trunk/kernel/function.hpp index fb2ad296d7..54784b5549 100644 --- a/sca-cpp/trunk/kernel/function.hpp +++ b/sca-cpp/trunk/kernel/function.hpp @@ -140,11 +140,11 @@ public: debug_inc(countELambdas); } - template<typename F> lambda(const F f) : callable(0) { - typedef typename CallableType::template Proxy<F> ProxyType; - + template<typename F> lambda(const F f) { debug_inc(countLambdas); debug_inc(countFLambdas); + + typedef typename CallableType::template Proxy<F> ProxyType; callable = gc_counting_ptr<CallableType>(new ProxyType(f)); } |