From 653ba67e234089874be84db4a509c8803092bb06 Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Mon, 22 Oct 2018 20:03:55 +0200 Subject: [PATCH] Path iterator warning fixed. --- filesystem.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/filesystem.h b/filesystem.h index fc6e814..b191422 100644 --- a/filesystem.h +++ b/filesystem.h @@ -362,8 +362,8 @@ public: iterator operator--(int); bool operator==(const iterator& other) const; bool operator!=(const iterator& other) const; - const reference operator*() const; - const pointer operator->() const; + reference operator*() const; + pointer operator->() const; private: string_type::const_iterator increment(const std::string::const_iterator& pos) const; @@ -2420,12 +2420,12 @@ inline bool path::iterator::operator!=(const path::iterator& other) const return _iter != other._iter; } -inline const path::iterator::reference path::iterator::operator*() const +inline path::iterator::reference path::iterator::operator*() const { return _current; } -inline const path::iterator::pointer path::iterator::operator->() const +inline path::iterator::pointer path::iterator::operator->() const { return &_current; }