yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10794
[Branch ~yade-pkg/yade/git-trunk] Rev 3944: Fix compilation with clang.
------------------------------------------------------------
revno: 3944
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Thu 2014-05-08 10:11:40 +0200
message:
Fix compilation with clang.
modified:
lib/base/openmp-accu.hpp
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'lib/base/openmp-accu.hpp'
--- lib/base/openmp-accu.hpp 2014-04-15 14:45:52 +0000
+++ lib/base/openmp-accu.hpp 2014-05-08 08:11:40 +0000
@@ -2,20 +2,20 @@
#pragma once
// for ZeroInitializer template
-#include<yade/lib/base/Math.hpp>
+#include <yade/lib/base/Math.hpp>
-#include<boost/serialization/split_free.hpp>
-#include<boost/lexical_cast.hpp>
-#include<string>
-#include<vector>
-#include<cstdlib>
-#include<unistd.h>
-#include<stdexcept>
-#include<iostream>
+#include <boost/serialization/split_free.hpp>
+#include <boost/lexical_cast.hpp>
+#include <string>
+#include <vector>
+#include <cstdlib>
+#include <unistd.h>
+#include <stdexcept>
+#include <iostream>
#ifdef YADE_OPENMP
-#include"omp.h"
+#include "omp.h"
// O(1) access container which stores data in contiguous chunks of memory
// each chunk belonging to one thread
@@ -197,7 +197,7 @@
std::vector<T> getPerThreadData() const { std::vector<T> ret; ret.push_back(data); return ret; }
};
-using OpenMPVector=std::vector;
+template <typename T> using OpenMPVector=std::vector <T>;
#endif
// boost serialization