assign values to the data members of the derived object

I have a function to set values into my data members. But when I tried, it is giving me an error of no viable overloaded '='.

Could anyone give me hint to do this?

1
2
3
4
 void set(const List<NVPair <std::string, std::string>, DATA_MEMBERS_PER_OBJECT>& list) {
           int i = 0;
           list.arr[i] = type ;
       }
http://www.cplusplus.com/forum/articles/40071/#msg216270
http://www.cplusplus.com/forum/articles/40071/#msg216313

> set values into my data members
¿why are you touching the parameter then?
also, you have declared 'list' as constant
List is stored in &list as a name-value pair and i have to read it and put its content on my data members
Topic archived. No new replies allowed.