Boost logo

Boost Users :

From: chun ping wang (cablepuff_at_[hidden])
Date: 2007-08-05 01:05:54


Hi I have a

struct People
{
   const char* fname_;
   const char* lname_;
   unsigned int id;
}

I want to create an array of 3 people.

boost::array<People, 3> = {
{"Chun", "Wang", 1441},
{"Chia", "Wang", 1443},
{"Ta", "Wang", 1445}
};

I get a compile time error too many initializer.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net