Fix for operator= in image
This commit is contained in:
parent
64ee848445
commit
c262e51428
2 changed files with 7 additions and 0 deletions
|
@ -93,6 +93,7 @@ public:
|
|||
image(image<T> const& rhs);
|
||||
image(image<T> && rhs) noexcept;
|
||||
image<T>& operator=(image<T> rhs);
|
||||
image<T>const& operator=(image<T> const& rhs) const;
|
||||
|
||||
void swap(image<T> & rhs);
|
||||
pixel_type& operator() (std::size_t i, std::size_t j);
|
||||
|
|
|
@ -128,6 +128,12 @@ image<T>& image<T>::operator=(image<T> rhs)
|
|||
return *this;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
image<T> const& image<T>::operator=(image<T> const& rhs) const
|
||||
{
|
||||
return rhs;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void image<T>::swap(image<T> & rhs)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue