From 9d84879d24ac2b2f82c5858e17aa9f0096cc34cc Mon Sep 17 00:00:00 2001 From: ribes Date: Tue, 12 Jan 2010 16:36:50 +0000 Subject: [PATCH] - Problem with the use of the C++ map --- src/Launcher/Launcher.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { -- 2.39.2