From 593cce308aadd1a637528197375c6bb5456f136a Mon Sep 17 00:00:00 2001 From: castano Date: Thu, 17 Jan 2008 20:39:59 +0000 Subject: [PATCH] Disable copy constructors. Eliminates some W4 warnings. --- src/nvcore/StdStream.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nvcore/StdStream.h b/src/nvcore/StdStream.h index 3d764a3..ee3055b 100644 --- a/src/nvcore/StdStream.h +++ b/src/nvcore/StdStream.h @@ -29,6 +29,7 @@ inline FILE * fileOpen(const char * fileName, const char * mode) /// Base stdio stream. class NVCORE_CLASS StdStream : public Stream { + NV_FORBID_COPY(StdStream); public: /// Ctor. @@ -101,6 +102,7 @@ protected: /// Standard output stream. class NVCORE_CLASS StdOutputStream : public StdStream { + NV_FORBID_COPY(StdOutputStream); public: /// Construct stream by file name. @@ -139,6 +141,7 @@ public: /// Standard input stream. class NVCORE_CLASS StdInputStream : public StdStream { + NV_FORBID_COPY(StdInputStream); public: /// Construct stream by file name. @@ -177,6 +180,7 @@ public: /// Memory input stream. class NVCORE_CLASS MemoryInputStream : public Stream { + NV_FORBID_COPY(MemoryInputStream); public: /// Ctor. @@ -256,6 +260,7 @@ private: /// Protected input stream. class NVCORE_CLASS ProtectedStream : public Stream { + NV_FORBID_COPY(ProtectedStream); public: /// Ctor.