From: barate Date: Mon, 12 Dec 2011 15:50:00 +0000 (+0000) Subject: Merge from trunk X-Git-Tag: V1_4_0_VISHNU X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=516d7bc1e60f785dce6dfee58c395d56e409ae17;p=tools%2Flibbatch.git Merge from trunk --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 84797ca..304734d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,8 +55,8 @@ ENDIF (BUILD_PYTHON_WRAPPING) SET(CPACK_GENERATOR TGZ) SET(CPACK_SOURCE_GENERATOR TGZ ZIP) SET(CPACK_PACKAGE_VERSION_MAJOR 1) -SET(CPACK_PACKAGE_VERSION_MINOR 3) -SET(CPACK_PACKAGE_VERSION_PATCH 1) +SET(CPACK_PACKAGE_VERSION_MINOR 4) +SET(CPACK_PACKAGE_VERSION_PATCH 0) SET(CPACK_SOURCE_IGNORE_FILES /\\\\.;/CVS/;~) SET(CPACK_SOURCE_PACKAGE_FILE_NAME ${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}) diff --git a/src/Core/Batch_Versatile.hxx b/src/Core/Batch_Versatile.hxx index 96b4b60..1b628e2 100644 --- a/src/Core/Batch_Versatile.hxx +++ b/src/Core/Batch_Versatile.hxx @@ -43,6 +43,7 @@ #include "Batch_CoupleType.hxx" #include "Batch_TypeMismatchException.hxx" #include "Batch_ListIsFullException.hxx" +#include "Batch_RunTimeException.hxx" namespace Batch { @@ -57,6 +58,10 @@ namespace Batch { Versatile(DiscriminatorType discriminator, size_type maxsize, std::string name); Versatile(const Versatile & V); + // Use of default constructor is forbidden but we cannot declare it private because + // compilation fails with VC8 on Windows + Versatile() { throw RunTimeException("Forbidden constructor"); } + // Destructor virtual ~Versatile(); @@ -104,8 +109,7 @@ namespace Batch { private: - // Forbid the use of default constructor and affectation operator - Versatile() {} + // Forbid the use of affectation operator void operator= (const Versatile & V) {} }; diff --git a/src/Local/Batch_BatchManager_Local.cxx b/src/Local/Batch_BatchManager_Local.cxx index c7d3f60..e33cb65 100644 --- a/src/Local/Batch_BatchManager_Local.cxx +++ b/src/Local/Batch_BatchManager_Local.cxx @@ -549,7 +549,7 @@ namespace Batch { while (1) { #ifdef WIN32 DWORD exitCode; - BOOL res = GetExitCodeProcess(child, &exitCode); + GetExitCodeProcess(child, &exitCode); if (exitCode != STILL_ACTIVE) { UNDER_LOCK( cout << "Father sees his child is DONE: exit code = " << exitCode << endl ); break; @@ -881,7 +881,7 @@ namespace Batch { char * buffer = strdup(comstr.c_str()); // launch the new process - BOOL res = CreateProcess(NULL, buffer, NULL, NULL, FALSE, + bool res = CreateProcess(NULL, buffer, NULL, NULL, FALSE, CREATE_NO_WINDOW, chNewEnv, NULL, &si, &pi); if (buffer) free(buffer);