Browse Source
Merge pull request #831 from trapexit/minfreespace-fix
properly return const ref from tofrom string wrapper
pull/832/head
trapexit
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
src/tofrom_wrapper.hpp
|
|
@ -52,14 +52,14 @@ public: |
|
|
|
|
|
|
|
public: |
|
|
|
ToFromWrapper<T>& |
|
|
|
operator=(const T data_) |
|
|
|
operator=(const T &data_) |
|
|
|
{ |
|
|
|
_data = data_; |
|
|
|
return *this; |
|
|
|
} |
|
|
|
|
|
|
|
public: |
|
|
|
operator T() const |
|
|
|
operator const T&() const |
|
|
|
{ |
|
|
|
return _data; |
|
|
|
} |
|
|
@ -72,7 +72,7 @@ public: |
|
|
|
|
|
|
|
public: |
|
|
|
bool |
|
|
|
operator==(const T data_) const |
|
|
|
operator==(const T &data_) const |
|
|
|
{ |
|
|
|
return (_data == data_); |
|
|
|
} |
|
|
@ -121,7 +121,7 @@ public: |
|
|
|
|
|
|
|
public: |
|
|
|
bool |
|
|
|
operator==(const T data_) const |
|
|
|
operator==(const T &data_) const |
|
|
|
{ |
|
|
|
return (_data == data_); |
|
|
|
} |
|
|
|