14 Sep
2005
14 Sep
'05
4:44 p.m.
On Thu, Sep 15, 2005 at 12:12:41AM +1000, John Pye wrote:
I've got an application I'm working on which needs the ability to handle STL maps and sets containing symbols.
Use std::map<ex, foo, ex_is_less>, see http://www.ginac.de/FAQ.html#stlcontainers If you _really_ want to use std::map<symbol, foo, ...> struct symbol_is_less { inline const bool operator()(const symbol& a, const symbol& b) { return ex_is_less()(a, b); } }; Best regards, Alexei -- All science is either physics or stamp collecting.