]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/date_time/time_iterator.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / date_time / time_iterator.hpp
index 64439363d7e4769c55e959807862c47d6da2454a..b0a9184ed50ee9ccac033d1855f60d4ca0ea0238 100644 (file)
@@ -30,14 +30,14 @@ namespace date_time {
       current_ = current_ - offset_;
       return *this;
     }
-    time_type operator*() {return current_;}
-    time_type* operator->() {return &current_;}
-    bool operator<  (const time_type& t) {return current_ < t;}
-    bool operator<= (const time_type& t) {return current_ <= t;}
-    bool operator!=  (const time_type& t) {return current_ != t;}
-    bool operator== (const time_type& t) {return current_ == t;}
-    bool operator>  (const time_type& t) {return current_ > t;}
-    bool operator>= (const time_type& t) {return current_ >= t;}
+    const time_type& operator*() const {return current_;}
+    const time_type* operator->() const {return &current_;}
+    bool operator<  (const time_type& t) const {return current_ < t;}
+    bool operator<= (const time_type& t) const {return current_ <= t;}
+    bool operator!=  (const time_type& t) const {return current_ != t;}
+    bool operator== (const time_type& t) const {return current_ == t;}
+    bool operator>  (const time_type& t) const {return current_ > t;}
+    bool operator>= (const time_type& t) const {return current_ >= t;}
 
   private:
     time_type current_;