Remove warning in Visual Studio (#235)
The following warning is removed: Visual Studio 14.0 1. warning C4275: non dll-interface class 'std::exception' used as base for dll-interface class 'vtkpugixml::xpath_exception'
This commit is contained in:
parent
81c82588bd
commit
273fa0ab26
@ -1251,6 +1251,12 @@ namespace pugi
|
|||||||
};
|
};
|
||||||
|
|
||||||
#ifndef PUGIXML_NO_EXCEPTIONS
|
#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
|
// XPath exception class
|
||||||
class PUGIXML_CLASS xpath_exception: public std::exception
|
class PUGIXML_CLASS xpath_exception: public std::exception
|
||||||
{
|
{
|
||||||
@ -1267,6 +1273,9 @@ namespace pugi
|
|||||||
// Get parse result
|
// Get parse result
|
||||||
const xpath_parse_result& result() const;
|
const xpath_parse_result& result() const;
|
||||||
};
|
};
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// XPath node class (either xml_node or xml_attribute)
|
// XPath node class (either xml_node or xml_attribute)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user