Browse Source

Make it compile on Ubuntu 20.04 (g++ 9.4.0)

Ian Goldberg 2 years ago
parent
commit
7800fb4250
1 changed files with 4 additions and 2 deletions
  1. 4 2
      duoram.hpp

+ 4 - 2
duoram.hpp

@@ -266,11 +266,13 @@ public:
     // Generate independent memory references for this Flat
     template <typename U>
     Duoram::Shape::MemRefInd<U, Flat> indep(const std::vector<U> &indcs) {
-        return typename Duoram::Shape::MemRefInd<U,Flat>(*this, indcs);
+        typename Duoram<T>::Shape::template MemRefInd<U,Flat> res(*this, indcs);
+        return res;
     }
     template <typename U, size_t N>
     Duoram::Shape::MemRefInd<U, Flat> indep(const std::array<U,N> &indcs) {
-        return typename Duoram::Shape::MemRefInd<U,Flat>(*this, indcs);
+        typename Duoram<T>::Shape::template MemRefInd<U,Flat> res(*this, indcs);
+        return res;
     }
 
     // Oblivious sort the elements indexed by the two given indices.