Boost logo

Boost Users :

From: Angus Leeming (angus.leeming_at_[hidden])
Date: 2003-11-04 22:09:02

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

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_;
        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.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at