|
|
@@ -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;
|
|
|
};
|