1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#include "meshkit/Error.hpp"
#include <stdio.h>
#include <stdarg.h>

namespace MeshKit {

Error::Error( int err, const char* format, ... )<--- Member variable 'Error::errorCode' is not initialized in the constructor.
{
  char buffer[512];
  va_list args;
  va_start(args, format);
  vsnprintf(buffer, sizeof(buffer)-1, format, args);
  errDescription = buffer;
  va_end(args);
}

}