From 42a98c780be6dbd15ef3d6fabd714f989adb9c86 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 8 Apr 2002 08:22:27 +0000 Subject: [PATCH] Fix for VisualStudio's lack of auto_ptr::reset. --- src/osg/Notify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/Notify.cpp b/src/osg/Notify.cpp index 1a92f3719..1d45461fd 100644 --- a/src/osg/Notify.cpp +++ b/src/osg/Notify.cpp @@ -29,7 +29,7 @@ bool osg::initNotifyLevel() // set up global notify null stream for inline notify #if defined(WIN32) && !defined(__CYGWIN__) - g_NotifyNulStream.reset(osgNew std::ofstream ("nul")); + g_NotifyNulStream = std::auto_ptr(osgNew std::ofstream ("nul")); #else g_NotifyNulStream.reset(osgNew std::ofstream ("/dev/null")); #endif