Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/41998 )

Change subject: arch: Remove unnecessary "typename"s from VecPredRegT.
......................................................................

arch: Remove unnecessary "typename"s from VecPredRegT.

Change-Id: If38e71ac79105b111d68df1e572f9a8e32a131ad
---
M src/arch/generic/vec_pred_reg.hh
1 file changed, 5 insertions(+), 5 deletions(-)



diff --git a/src/arch/generic/vec_pred_reg.hh b/src/arch/generic/vec_pred_reg.hh
index e932418..6db0e1e 100644
--- a/src/arch/generic/vec_pred_reg.hh
+++ b/src/arch/generic/vec_pred_reg.hh
@@ -83,14 +83,14 @@

     /// Reset the register to an all-false value.
     template<bool Condition = !Const>
- typename std::enable_if_t<Condition, void> reset() { container.reset(); }
+    std::enable_if_t<Condition> reset() { container.reset(); }

     /// Reset the register to an all-true value.
     template<bool Condition = !Const>
-    typename std::enable_if_t<Condition, void> set() { container.set(); }
+    std::enable_if_t<Condition> set() { container.set(); }

     template<bool Condition = !Const>
-    typename std::enable_if_t<Condition, MyClass&>
+    std::enable_if_t<Condition, MyClass&>
     operator=(const MyClass& that)
     {
         container = that.container;
@@ -104,7 +104,7 @@
     }

     template<bool Condition = !Const>
-    typename std::enable_if_t<Condition, bool&>
+    std::enable_if_t<Condition, bool&>
     operator[](size_t idx)
     {
         return container[idx * sizeof(VecElem)];
@@ -120,7 +120,7 @@

     /// Write a raw value in an element of the predicate register
     template<bool Condition = !Const>
-    typename std::enable_if_t<Condition, void>
+    std::enable_if_t<Condition>
     set_raw(size_t idx, uint8_t val)
     {
         container.set_bits(idx * sizeof(VecElem), sizeof(VecElem), val);

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/41998
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: If38e71ac79105b111d68df1e572f9a8e32a131ad
Gerrit-Change-Number: 41998
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabe.bl...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to