Skip to content

Commit

Permalink
Remove ambiguous operator
Browse files Browse the repository at this point in the history
  • Loading branch information
royfalk committed May 2, 2024
1 parent 304e833 commit 6b928c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions engine/src/resource/resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ void Resource<T>::RepairByPercent(const T &value) {
* Overloaded operators
*/

template<typename T>
/*template<typename T>
const T Resource<T>::operator=(Resource<T> value) const {
return value.value_;
}
}*/


template<typename T>
Expand Down
2 changes: 1 addition & 1 deletion engine/src/resource/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Resource {
public:
Resource(const T &value = 0, const T &min_value = 0, const T &max_value = -1);

const T operator=(Resource<T> value) const;
//const T operator=(Resource<T> value) const;
Resource<T> operator=(const T &value);
Resource<T> operator+=(const T &value);
Resource<T> operator-=(const T &value);
Expand Down

0 comments on commit 6b928c9

Please sign in to comment.