Commit 8ebf0ae2 authored by cyrush's avatar cyrush
Browse files

replaced deprecated <new.h> with <new>

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@3017 18c085ea-50e0-402c-830e-de6fd14e8384
parent d1cbc509
......@@ -52,7 +52,7 @@
#include <unistd.h>
#include <sys/types.h>
#endif
#include <new.h>
#include <new>
#include <DebugStream.h>
#include <TimingsManager.h>
......@@ -194,6 +194,9 @@ NewHandler(void)
// Hank Childs, Tue Dec 18 15:53:10 PST 2007
// Add support for -svn_revision.
//
// Cyrus Harrison, Wed Jan 23 09:23:19 PST 2008
// Changed set_new_handler to std::set_new_handler b/c of change from
// deprecated <new.h> to <new>
// ****************************************************************************
void
......@@ -317,7 +320,7 @@ Init::Initialize(int &argc, char *argv[], int r, int n, bool strip, bool sigs)
visitTimer->Enable();
#if !defined(_WIN32)
set_new_handler(NewHandler);
std::set_new_handler(NewHandler);
#endif
#if defined(_WIN32)
......
......@@ -49,7 +49,7 @@
#include <process.h> // for _getpid()
#include <winsock.h> // for gethostname()
#endif
#include <new.h>
#include <new>
#include <visitstream.h>
#include <snprintf.h>
......@@ -304,6 +304,11 @@ Engine *Engine::Instance()
//
// Mark C. Miller, Wed Aug 2 19:58:44 PDT 2006
// Added timer
//
// Cyrus Harrison, Wed Jan 23 09:21:18 PST 2008
// Changed set_new_handler to std::set_new_handler b/c of change from
// deprecated <new.h> to <new>
//
// ****************************************************************************
void
Engine::Initialize(int *argc, char **argv[], bool sigs)
......@@ -337,7 +342,7 @@ Engine::Initialize(int *argc, char **argv[], bool sigs)
// Set a different new handler for the engine
//
#if !defined(_WIN32)
set_new_handler(Engine::NewHandler);
std::set_new_handler(Engine::NewHandler);
#endif
#ifdef PARALLEL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment