Преглед на файлове

Remove warnings with llvm 8.0 of macos

Eric Ramat преди 7 години
родител
ревизия
c8a3cc37c9
променени са 3 файла, в които са добавени 16 реда и са изтрити 3 реда
  1. 2 3
      src/artis/builder/ModelFactory.hpp
  2. 7 0
      src/artis/kernel/AbstractAtomicModel.hpp
  3. 7 0
      src/artis/kernel/AbstractCoupledModel.hpp

+ 2 - 3
src/artis/builder/ModelFactory.hpp

@@ -90,7 +90,7 @@ public:
 
     bool remove(const I& id)
     {
-/*        std::lock_guard < std::mutex > lock(_mutex);
+        std::lock_guard < std::mutex > lock(_mutex);
         typename Creators::const_iterator it = creators.find(id);
 
         if (it != creators.end()) {
@@ -98,8 +98,7 @@ public:
             return true;
         } else {
             return false;
-            } */
-        return false;
+        }
     }
 
 private:

+ 7 - 0
src/artis/kernel/AbstractAtomicModel.hpp

@@ -43,6 +43,13 @@ class AbstractAtomicModel : public AbstractModel < U, V >,
 {
     typedef AbstractModel < U, V > type;
 
+    using Externals < T, U, V >::restore;
+    using Internals < T, U, V >::restore;
+    using States < T, U, V >::restore;
+    using Externals < T, U, V >::save;
+    using Internals < T, U, V >::save;
+    using States < T, U, V >::save;
+
 public:
     AbstractAtomicModel(const type* parent = 0) : type(parent)
     {

+ 7 - 0
src/artis/kernel/AbstractCoupledModel.hpp

@@ -52,6 +52,13 @@ class AbstractCoupledModel : public AbstractModel < U, V >,
     typedef std::map < int, std::pair < type*,
                                         int > > SubModelInternals;
 
+    using Externals < T, U, V >::restore;
+    using Internals < T, U, V >::restore;
+    using States < T, U, V >::restore;
+    using Externals < T, U, V >::save;
+    using Internals < T, U, V >::save;
+    using States < T, U, V >::save;
+
 #ifdef WITH_TRACE
     friend class Simulator < T, U, V, W >;
 #endif