Hello all,
I've been trying to create an initiliser for the following (paraphrased)
struct data
{
Char *str;
Vector<int> stuff;
};
map mapstuff = map_list_of
(1, ("hello", list_of (3) (4) (2)),
(3, ("goodbye", list_of (1) (3) );
Etc etc
However, this doesn't work, with a very complex compile error from
assign. I've tried also...
map mapstuff = map_list_of
(1, {"hello", list_of (3) (4) (2) } ), // note curly braces
(3, {"goodbye", list_of (1) (3) ) } );
But that doesn't work either.
Is it actually possible to do something like this, and if so, how?
James
This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law. If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system. If you
have any questions about this e-mail please notify the sender
immediately.