mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Compile fixes specific for VS 2012"
* Reverted std::bind to boost::bind. std::bind on Visual 2012 doesn't work in some cases (especially with std::ref), not sure why [but it seems to be a bug, since 2013 preview compiles the same code fine]. * Move assignment operator for VS 2012.
This commit is contained in:
@@ -1473,7 +1473,7 @@ void CGameHandler::run(bool resume)
|
||||
if(j->second == elem)
|
||||
pom.insert(j->first);
|
||||
|
||||
boost::thread(std::bind(&CGameHandler::handleConnection,this,pom,std::ref(*elem)));
|
||||
boost::thread(boost::bind(&CGameHandler::handleConnection,this,pom,boost::ref(*elem)));
|
||||
}
|
||||
|
||||
if(gs->scenarioOps->mode == StartInfo::DUEL)
|
||||
|
||||
Reference in New Issue
Block a user