From 31438dbb82061aee1c54b095dc2e5799f80fff7a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 21 Mar 2004 09:06:29 +0000 Subject: Avoid compiler warning. --- include/PropSet.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/PropSet.h') diff --git a/include/PropSet.h b/include/PropSet.h index 1f4589f98..0b4c2f58d 100644 --- a/include/PropSet.h +++ b/include/PropSet.h @@ -95,4 +95,11 @@ inline bool IsAlphabetic(unsigned int ch) { return ((ch >= 'A') && (ch <= 'Z')) || ((ch >= 'a') && (ch <= 'z')); } + +#ifdef _MSC_VER +// Visual C++ doesn't like the private copy idiom for disabling +// the default copy constructor and operator=, but it's fine. +#pragma warning(disable: 4511 4512) +#endif + #endif -- cgit v1.2.3