I need to convert a class written in C ++ 0x to the one compiled in Visual Studio 2008. The code uses std :: initializer_list.
Below is the code
template <typename data_type> class symmatrix { public: typedef data_type value_type; symmatrix(std::initializer_list<T> const& size, value_type ini = value_type()) : m_data(0), m_memory(false) { resize(size); *this = ini; } }
should be converted to the old standard, understandable by VS 2008.
I am really trying to change 100 lines of new C ++ code to old C ++. So please help me.
source share