class base
{
private:
int i;
void seti( int i_temp ) // :i(i_temp) ->Initializer List not working
{
i = i_temp;
}
public:
base()
{
}
base( int t ):seti( t )
{
}
};
error C2436: 'seti' : member function or nested class in constructor initializer list.
That is the error i get for the code above it. could someone please tell me where im err-ing?