Currently I'm doing something like this:
struct foo
{
const int
*const a,
*const b,
*const c;
foo(int a, int b, int c)
: a(_a), b(_b), c(_c)
{
*_a = a;
*_b = b;
*_c = c;
}
private:
int _a[1], _b[1], _c[1];
};
but is there a way to do this without putting in the second set of pointers (_a, _b, _c
)?