Hi Einat,
"Einat d" <ei*********@bmc.com> wrote in message
news:f0**************************@posting.google.c om...
| typedef multimap<ClsRssObject*,
| ClsRssUser*,
| RssObjectPtrCompare,
| ConnectionAllocator > ConnectionPool;
|
| Is there anything else I can post ?
Have you tried the fix I suggested in my previous post:
myMapVar.insert(MyMap::value_type(objPtr,userPtr))
Specifically, based on the code you've now posted,
replace:
| m_connectionPool.insert(std::make_pair(
| &*groupInserPair.first, &*userInserPair.first));
with:
m_connectionPool.insert(ConnectionPool::value_type (
&*groupInserPair.first, &*userInserPair.first));
Even if this doesn't work, it should at least provide
you with a somewhat easier error message.
You always need to be careful with std::make_pair,
because subtle differences in the template parameters
of std::pair can create incompatible types.
In your library implementation, I think the map template
implicitly adds a const on the first type (which is
correct, though debated). And this might be causing
the error...
I hope this helps,
Ivan
--
http://ivan.vecerina.com