summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sca-cpp/trunk/kernel/gc.hpp4
-rw-r--r--sca-cpp/trunk/kernel/parallel.hpp1
2 files changed, 3 insertions, 2 deletions
diff --git a/sca-cpp/trunk/kernel/gc.hpp b/sca-cpp/trunk/kernel/gc.hpp
index 3d20245c69..cc347a6da4 100644
--- a/sca-cpp/trunk/kernel/gc.hpp
+++ b/sca-cpp/trunk/kernel/gc.hpp
@@ -225,7 +225,7 @@ template<typename T> T* gc_new() {
template<typename T> apr_status_t gc_pool_acleanup(void* v) {
int* m = static_cast<int*>(v);
int n = *m;
- T* t = static_cast<T*>(m + 1);
+ T* t = (T*)(m + 1);
for (int i = 0; i < n; i++, t++)
t->~T();
return APR_SUCCESS;
@@ -235,7 +235,7 @@ template<typename T> T* gc_anew(apr_pool_t* p, int n) {
int* m = static_cast<int*>(apr_palloc(p, sizeof(int) + sizeof(T[n])));
*m = n;
apr_pool_cleanup_register(p, m, gc_pool_acleanup<T>, apr_pool_cleanup_null) ;
- return static_cast<T*>(m + 1);
+ return (T*)(m + 1);
}
template<typename T> T* gc_anew(int n) {
diff --git a/sca-cpp/trunk/kernel/parallel.hpp b/sca-cpp/trunk/kernel/parallel.hpp
index 33cb735b84..30697004f2 100644
--- a/sca-cpp/trunk/kernel/parallel.hpp
+++ b/sca-cpp/trunk/kernel/parallel.hpp
@@ -33,6 +33,7 @@
#endif
#include "function.hpp"
+#include "list.hpp"
namespace tuscany {