You're right, Wolfgang. I've implemented a custom comparison operator and it works fine now. Thanks.
I find it quite strange though that it worked with no complaints with the gcc compiler. Many thanks Theodore On 1 April 2011 20:01, Wolfgang Bangerth <[email protected]> wrote: > > > I tried your suggestion with std::make_pair and I still get: > > OK, so you got through the first error. Now you're stuck at the second one: > > > > /usr/include/c++/4.4.3/bits/stl_function.h(230): error: no operator "<" > > matches these operands > > operand types are: const Tuple < const Tuple > > { return __x < __y; } > > ^ > > But that actually makes sense: if you want to use a > std::map<A,B> > then objects of type A must have an operator< so that they can be ordered. > That's one of the requirements of std::map. The std::tuple data type > doesn't > have such an operator, however. > > W. > > ------------------------------------------------------------------------- > Wolfgang Bangerth email: [email protected] > www: http://www.math.tamu.edu/~bangerth/ > >
_______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
