G
g
hello!
this the code!
std::map<std::string,Services*>::iterator
iter=transactions.find(transaction);
if(iter != transactions.end())
{
return iter->second;
//return transactions.[transaction];
}
else
return NULL;
How can I get a copy of iter->second?which is the best way?
Sercices is a base class and I want a copy of the derived.
these objects are proxies for services.
the reason i want a copy is becouse I dont want to have the
sychronization in the proxies
becouse it would be overkill,it will serialize the execution of each
service,
no matter if they don't conflict.
how can I get it? switch/factory before return??
thanks!
this the code!
std::map<std::string,Services*>::iterator
iter=transactions.find(transaction);
if(iter != transactions.end())
{
return iter->second;
//return transactions.[transaction];
}
else
return NULL;
How can I get a copy of iter->second?which is the best way?
Sercices is a base class and I want a copy of the derived.
these objects are proxies for services.
the reason i want a copy is becouse I dont want to have the
sychronization in the proxies
becouse it would be overkill,it will serialize the execution of each
service,
no matter if they don't conflict.
how can I get it? switch/factory before return??
thanks!