E
er
Hi all,
1)
I have N=2 distinct pairs of objects {(x0,y0),(x1,y1)} related as
x0 -> y0
y0 -> {x1}
x1 -> y1
y1 -> {x0}
where -> represents, for example, has-a-ptr-to. Classes of objects
labeled x# and y# may have to support some operations (to safisfy
their left or right neighbors) but are of arbitrary type. So a class
for x# has to be like template<class Ty> class M_x{}, but also
template<class Tx> class M_y{},
which runs into a circular problem.
Any suggestion, please?
2) How about N>2? for example N=3,
x0 -> y0
y0 -> {x1,x2}
x1 -> y1
y1 -> {x0,x2}
x2 -> y2
y2 -> {x0,x1}
1)
I have N=2 distinct pairs of objects {(x0,y0),(x1,y1)} related as
x0 -> y0
y0 -> {x1}
x1 -> y1
y1 -> {x0}
where -> represents, for example, has-a-ptr-to. Classes of objects
labeled x# and y# may have to support some operations (to safisfy
their left or right neighbors) but are of arbitrary type. So a class
for x# has to be like template<class Ty> class M_x{}, but also
template<class Tx> class M_y{},
which runs into a circular problem.
Any suggestion, please?
2) How about N>2? for example N=3,
x0 -> y0
y0 -> {x1,x2}
x1 -> y1
y1 -> {x0,x2}
x2 -> y2
y2 -> {x0,x1}