summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/kernel/dynlib-test.cpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2012-12-11 03:51:03 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2012-12-11 03:51:03 +0000
commitae0b7c0063db6236be2d7cf01ddbf2159f77c98c (patch)
tree2f64d65d018634b8728623e2ca99514541fab8aa /sca-cpp/trunk/kernel/dynlib-test.cpp
parent1f3796522a078dda5906395ba471d151ad694b6b (diff)
Port kernel to C++11 and refactor some of the core modules. Convert functors to lambdas, and add C++ const, noexcept and inline annotations to get more efficient generated code.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1419985 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/kernel/dynlib-test.cpp')
-rw-r--r--sca-cpp/trunk/kernel/dynlib-test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sca-cpp/trunk/kernel/dynlib-test.cpp b/sca-cpp/trunk/kernel/dynlib-test.cpp
index 419fa29db5..c7f0e6238d 100644
--- a/sca-cpp/trunk/kernel/dynlib-test.cpp
+++ b/sca-cpp/trunk/kernel/dynlib-test.cpp
@@ -28,7 +28,7 @@
namespace tuscany {
namespace test {
- const int cppsquare(int x) {
+ const int cppsquare(const int x) {
return x * x;
}
@@ -41,8 +41,8 @@ extern "C" {
return tuscany::test::cppsquare(x);
}
- const tuscany::lambda<int(const int)> csquarel() {
- return tuscany::lambda<int(const int)>(tuscany::test::cppsquare);
+ const tuscany::lambda<const int(const int)> csquarel() {
+ return tuscany::lambda<const int(const int)>(tuscany::test::cppsquare);
}
}