diff options
Diffstat (limited to 'cpp/src/IceUtil/FileUtil.h')
-rw-r--r-- | cpp/src/IceUtil/FileUtil.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/FileUtil.h b/cpp/src/IceUtil/FileUtil.h index 4caf139b148..a833e59e785 100644 --- a/cpp/src/IceUtil/FileUtil.h +++ b/cpp/src/IceUtil/FileUtil.h @@ -129,6 +129,10 @@ public: using std::ifstream::open; #endif +#if defined(_MSC_VER) && (_MSC_VER >= 1900) + ifstream(const ifstream&) = delete; +#endif + private: // Hide const char* definitions since they shouldn't be used. @@ -148,6 +152,10 @@ public: using std::ofstream::open; #endif +#if defined(_MSC_VER) && (_MSC_VER >= 1900) + ofstream(const ofstream&) = delete; +#endif + private: // Hide const char* definitions since they shouldn't be used. |