5 Nov
2003
5 Nov
'03
3:09 a.m.
Angus Leeming wrote: Apologies for replying to my own mail, but I've made some progress. The attached code allows me to do all I would like to do, although it is more ugly than I would like. Specifically, the compiler errors caused by the existence of two node functions: class FEM { Node & node(size_type i); Node const & node(size-type i) const; }; Can be overcome if I wrap an FEM variable up inside a struct: class nodeGetter { FEM & fem_; public: nodeGetter(FEM & fem) : fem_(fem) {} Node & node operator()(size_type i) { return fem_.node(i); } }; It works, but it's nasty :-( I'd welcome any and all insights and would just love to get rid of this nastiness. Angus