]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
- Problem with the use of the C++ map
authorribes <ribes>
Tue, 12 Jan 2010 16:36:50 +0000 (16:36 +0000)
committerribes <ribes>
Tue, 12 Jan 2010 16:36:50 +0000 (16:36 +0000)
src/Launcher/Launcher.cxx

index c01d2145094f519b3683dd5feb6792a68493602d..e28a96100fdf317c96fe1796d276e2c22157a0c9 100644 (file)
@@ -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)
     {