3 Feb
2007
3 Feb
'07
10:29 a.m.
Hi,
I want to have a few classes to be stored inside a vector by
reference. I thought to use boost::ref for that purpose , instead of
storing pointer. However I am facing some problem regarding the operator & .
Here is a sample code which gives the problem,
struct T2{
int x;
T2(int x) :x(x){}
};
int main(int argc,char** argv) {
std::vector