Fix for operator= in image

This commit is contained in:
Blake Thompson 2015-03-13 16:49:28 -05:00
parent 64ee848445
commit c262e51428
2 changed files with 7 additions and 0 deletions

View file

@ -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);

View file

@ -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)
{