aboutsummaryrefslogtreecommitdiff
path: root/src/pugixml.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r--src/pugixml.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 5c928f5..c0dacb7 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -1251,6 +1251,12 @@ namespace pugi
};
#ifndef PUGIXML_NO_EXCEPTIONS
+ #if defined(_MSC_VER)
+ // C4275 can be ignored in Visual C++ if you are deriving
+ // from a type in the Standard C++ Library
+ #pragma warning(push)
+ #pragma warning(disable: 4275)
+ #endif
// XPath exception class
class PUGIXML_CLASS xpath_exception: public std::exception
{
@@ -1267,6 +1273,9 @@ namespace pugi
// Get parse result
const xpath_parse_result& result() const;
};
+ #if defined(_MSC_VER)
+ #pragma warning(pop)
+ #endif
#endif
// XPath node class (either xml_node or xml_attribute)