]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/SGWeakReferenced.hxx
Some Linux platforms need <cstdio> for snprintf.
[simgear.git] / simgear / structure / SGWeakReferenced.hxx
index 8108300e7b1fa562d5b2264b7217f37a9019d809..f5fd34c9a47476f8add67c792470b25118b39b72 100644 (file)
 #include "SGReferenced.hxx"
 #include "SGSharedPtr.hxx"
 
+#ifdef _MSC_VER
+# pragma warning(push)
+  // C4355: 'this' : used in base member initializer list
+  // Tell MSVC we know what we do and really want to do it this way.
+# pragma warning(disable: 4355)
+#endif
+
 template<typename T>
 class SGWeakPtr;
 
@@ -100,4 +107,8 @@ private:
   friend class SGWeakPtr;
 };
 
+#ifdef _MSC_VER
+# pragma warning(pop)
+#endif
+
 #endif