Home

Hi All,

I am beating my head against the wall trying to figure out how to make
this work.

I have a map which contains a string as the key and I want the data to
be a pointer_to_binary_function, but at the time of map definition, I
don't know the types. So really the map contains a templatized
pointer_to_binary_function. When I actually add to the map is where I
know the types of the binary function.

Adding to the map:

mMap.insert("test", ptr_fun(not_equal_to<int>));

Fails with: error: expected promary-expression before ')' token

I am at a loss here.

Thanks

Glenn

previous
next

Re: A question: Convert double to string
automatically setting platform-dependent location for Distutils "install-scripts"?
Re: Openings for C++ Developers
Re: Why does this work?
wxstyledtextctrl and xml markup
Podaruj Zycie
Pajacyk
Rodzic Po Ludzku
Krwinka
Mam Marzenie