Multimaps and CINT?

I’m going a little crazy trying use a a multimap in CINT. When I try to create a multimap as follows:

multimap<string,string> directory;

I get the following error:

Error: template argument for Compare missing (tmpfile):44:

But this is a syntax I know I’ve used successfully in the past, although not with ROOT. What’s the deal? I’d be very grateful if someone could tell me how to actually make this work.

                      Amanda

Hi Amanda,

Cint still has some problem interpreting some of the STL containers. I recommend that you generate a dictionary for multmap<string,string> (or compile your whole code) via ACLiC. For example:// file my loader.C #include <map> #ifdef __MAKECINT__ #pragma link C++ class multimap<string,string>; #endif
and

Cheers,
Philippe.