summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/kernel/function.hpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2009-12-26 03:25:25 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2009-12-26 03:25:25 +0000
commitbd4c1d47aeaf1d4bca76d5713e705b0869d3f2f7 (patch)
tree475d0385e678c5e7007df571bea9c5cc8b1417bb /sca-cpp/trunk/kernel/function.hpp
parentf453584ae0a3ec04f1781fc35b7abe5d139c6679 (diff)
Added missing const qualifiers, macros and util functions to help debugging, and a simple balanced tree implementation for use in lookup tables.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@893938 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-cpp/trunk/kernel/function.hpp6
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));
}