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

More removal of redundant things.

Sam Jaffe преди 4 години
родител
ревизия
1d265b7341
променени са 1 файла, в които са добавени 2 реда и са изтрити 6 реда
  1. 2 6
      include/iterator/recursive/impl.hpp

+ 2 - 6
include/iterator/recursive/impl.hpp

@@ -68,9 +68,7 @@ namespace iterator::recursive {
      * type of the map. Works only for nested collections with one associative
      * container at the bottom level.
      */
-    auto operator*() const -> decltype(*(next_layer &)(*this)) {
-      return next_layer::operator*();
-    }
+    decltype(auto) operator*() const { return next_layer::operator*(); }
     using super::super;
     impl() = default;
   };
@@ -142,9 +140,7 @@ namespace iterator::recursive {
      * type of the map. Works only for nested collections with one associative
      * container at the bottom/Max level.
      */
-    auto operator*() const -> decltype(*(next_layer &)(*this)) {
-      return next_layer::operator*();
-    }
+    decltype(auto) operator*() const { return next_layer::operator*(); }
     using super::super;
     bounded_impl() = default;
   };