I need to convert a class written in C++ 0x to one which compiles in Visual studio 2008. The code uses std::initializer_list.
Following 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; }
}
has to be converted to old standard understood by VS 2008.
I am really struggling to change 100 lines of new C++ code to old C++. So, please help me.