J
Johannes Bauer
Hello group,
I'm changing some code from C-style to STL-C++. In the old code,
something along the lines of this is used:
struct foo {
int x, y;
};
class moo {
private:
const foo[] foos;
};
and then in a cpp-file:
const foo[] moo::foos = {
{ 12, 14 },
{ 99, 3 },
{ 1, 2 },
{ 0 },
};
Now I'd like to change that to
class moo {
private:
const std::set<foo> foos;
};
and init that like the above C-style declaration. Is that possible? If
so, how?
Kind regards,
Johannes
I'm changing some code from C-style to STL-C++. In the old code,
something along the lines of this is used:
struct foo {
int x, y;
};
class moo {
private:
const foo[] foos;
};
and then in a cpp-file:
const foo[] moo::foos = {
{ 12, 14 },
{ 99, 3 },
{ 1, 2 },
{ 0 },
};
Now I'd like to change that to
class moo {
private:
const std::set<foo> foos;
};
and init that like the above C-style declaration. Is that possible? If
so, how?
Kind regards,
Johannes