From: ribes Date: Tue, 12 Jan 2010 16:36:50 +0000 (+0000) Subject: - Problem with the use of the C++ map X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9d84879d24ac2b2f82c5858e17aa9f0096cc34cc;p=modules%2Fkernel.git - Problem with the use of the C++ map --- diff --git a/src/Launcher/Launcher.cxx b/src/Launcher/Launcher.cxx index c01d21450..e28a96100 100644 --- a/src/Launcher/Launcher.cxx +++ b/src/Launcher/Launcher.cxx @@ -127,7 +127,11 @@ Launcher_cpp::createJob(Launcher::Job * new_job) { try { - _batchmap[resource_name] = FactoryBatchManager(resource_definition); + // Warning cannot write on one line like this, because map object is constructed before + // the method is called... + //_batchmap.[resource_name] = FactoryBatchManager(resource_definition); + Batch::BatchManager_eClient * batch_client = FactoryBatchManager(resource_definition); + _batchmap[resource_name] = batch_client; } catch(const LauncherException &ex) {