IfcException.h: suppress C4275 warnings

This commit is contained in:
Stinkfist0
2016-05-31 14:45:22 +03:00
parent c644ffbe5e
commit 77b72a9dde
2 changed files with 14 additions and 2 deletions
+12 -1
View File
@@ -25,6 +25,13 @@
#include <exception>
#include <string>
#ifdef _MSC_VER
// "C4275 can be ignored in Visual C++ if you are deriving from a type in the Standard C++ Library",
// https://msdn.microsoft.com/en-us/library/3tdb471s.aspx
#pragma warning(push)
#pragma warning(disable : 4275)
#endif
namespace IfcParse {
class IfcParse_EXPORT IfcException : public std::exception {
private:
@@ -38,7 +45,7 @@ namespace IfcParse {
}
};
class IfcAttributeOutOfRangeException : public IfcException {
class IfcParse_EXPORT IfcAttributeOutOfRangeException : public IfcException {
public:
IfcAttributeOutOfRangeException(const std::string& e)
: IfcException(e) {}
@@ -46,4 +53,8 @@ namespace IfcParse {
};
}
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#endif