Don't accept non-finite floats #4329

This commit is contained in:
Thomas Krijnen
2024-03-26 10:23:14 +01:00
parent b40c3fc173
commit a764387b90
2 changed files with 43 additions and 0 deletions
+11
View File
@@ -137,6 +137,17 @@ class IFC_PARSE_API IfcWriteArgument : public Argument {
// Overload to detect null values
void set(const aggregate_of_aggregate_of_instance::ptr& value);
// Overload to detect null values
void set(IfcUtil::IfcBaseInterface*const & v);
// Overloads to raise exceptions on non-finite values
void set(const double& v);
void set(const std::vector<double>& v);
void set(const std::vector< std::vector<double> >& v);
operator int() const;
operator bool() const;
operator boost::logic::tribool() const;
// Overload to detect null values
void set(IfcUtil::IfcBaseInterface* const& value);