typenames JEP-349-branch
authormgronlun
Sun, 22 Sep 2019 14:35:38 +0200
branchJEP-349-branch
changeset 58256 90279a5ce555
parent 58255 f9648f8ca4da
child 58257 40f2fbdd6484
typenames
src/hotspot/share/jfr/recorder/storage/jfrStorageUtils.hpp
--- a/src/hotspot/share/jfr/recorder/storage/jfrStorageUtils.hpp	Sun Sep 22 14:18:39 2019 +0200
+++ b/src/hotspot/share/jfr/recorder/storage/jfrStorageUtils.hpp	Sun Sep 22 14:35:38 2019 +0200
@@ -97,8 +97,8 @@
 template <typename T, bool negation>
 class Retired {
  public:
-  typedef typename T Type;
-  bool process(T* t) {
+  typedef T Type;
+  bool process(Type* t) {
     assert(t != NULL, "invariant");
     return negation ? !t->retired() : t->retired();
   }
@@ -107,8 +107,8 @@
 template <typename T, bool negation>
 class Excluded {
  public:
-  typedef typename T Type;
-  bool process(T* t) {
+  typedef T Type;
+  bool process(Type* t) {
     assert(t != NULL, "invariant");
     return negation ? !t->excluded() : t->excluded();
   }
@@ -133,7 +133,7 @@
  public:
   PredicatedMutexedWriteOp(Operation& operation, Predicate& predicate) :
     MutexedWriteOp(operation), _predicate(predicate) {}
-  bool process(Type* t) {
+  bool process(typename Operation::Type* t) {
     return _predicate.process(t) ? MutexedWriteOp<Operation>::process(t) : true;
   }
 };
@@ -157,7 +157,7 @@
  public:
   PredicatedConcurrentWriteOp(Operation& operation, Predicate& predicate) :
     ConcurrentWriteOp(operation), _predicate(predicate) {}
-  bool process(Type* t) {
+  bool process(typename Operation::Type* t) {
     return _predicate.process(t) ? ConcurrentWriteOp<Operation>::process(t) : true;
   }
 };