Skip to content

Commit d7c275e

Browse files
Janus Troelsenaothms
authored andcommitted
use boost's blank instead of none_t
1 parent 1b9a28d commit d7c275e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ifcparse/IfcWrite.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ IfcEntityList::ptr IfcWritableEntity::getInverse(IfcSchema::Type::Enum type, int
8383
std::string IfcWritableEntity::datatype() const { return IfcSchema::Type::ToString(_type); }
8484
Argument* IfcWritableEntity::getArgument (unsigned int i) {
8585
if (args[i] == 0) {
86-
_setArgument(i, boost::none);
86+
_setArgument(i, boost::blank());
8787
}
8888
return args[i];
8989
}
@@ -301,7 +301,7 @@ void IfcWritableEntity::setArgument(int i,const std::vector< boost::dynamic_bits
301301

302302
class SizeVisitor : public boost::static_visitor<int> {
303303
public:
304-
int operator()(const boost::none_t& /*i*/) const { return -1; }
304+
int operator()(const boost::blank& /*i*/) const { return -1; }
305305
int operator()(const IfcWriteArgument::Derived& /*i*/) const { return -1; }
306306
int operator()(const int& /*i*/) const { return -1; }
307307
int operator()(const bool& /*i*/) const { return -1; }
@@ -385,7 +385,7 @@ class StringBuilderVisitor : public boost::static_visitor<void> {
385385
public:
386386
StringBuilderVisitor(std::ostringstream& stream, bool upper = false)
387387
: data(stream), upper(upper) {}
388-
void operator()(const boost::none_t& /*i*/) { data << "$"; }
388+
void operator()(const boost::blank& /*i*/) { data << "$"; }
389389
void operator()(const IfcWriteArgument::Derived& /*i*/) { data << "*"; }
390390
void operator()(const int& i) { data << i; }
391391
void operator()(const bool& i) { data << (i ? ".T." : ".F."); }

src/ifcparse/IfcWrite.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace IfcWrite {
5959
private:
6060
boost::variant<
6161
// A null argument, it will always serialize to $
62-
boost::none_t,
62+
boost::blank,
6363
// A derived argument, it will always serialize to *
6464
Derived,
6565
// An integer argument, e.g. 123

0 commit comments

Comments
 (0)