diff --git a/src/mlpack/core/cereal/array_wrapper.hpp b/src/mlpack/core/cereal/array_wrapper.hpp index 3993fc743b..67a4dbdfd9 100644 --- a/src/mlpack/core/cereal/array_wrapper.hpp +++ b/src/mlpack/core/cereal/array_wrapper.hpp @@ -16,18 +16,17 @@ template class array_wrapper { private: - array_wrapper & operator=(array_wrapper & rhs); + array_wrapper& operator=(array_wrapper rhs); // note: I would like to make the copy constructor private but this breaks // make_array. So I make make_array a friend template friend const cereal::array_wrapper make_array(Tx * t, S s); public: - array_wrapper(array_wrapper & rhs) : - m_t(rhs.m_t), - m_element_count(rhs.m_element_count) - {} -public: + // array_wrapper(array_wrapper& rhs) : + // m_t(rhs.m_t), + // m_element_count(rhs.m_element_count) + // {} array_wrapper(T * t, std::size_t s) : m_t(t), m_element_count(s)