#include "Batch_CoupleType.hxx"
#include "Batch_TypeMismatchException.hxx"
#include "Batch_ListIsFullException.hxx"
+#include "Batch_RunTimeException.hxx"
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();
private:
- // Forbid the use of default constructor and affectation operator
- Versatile() {}
+ // Forbid the use of affectation operator
void operator= (const Versatile & V) {}
};
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;
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);