Fix additional warnings identified in #139

This commit is contained in:
Thomas Krijnen
2016-10-09 12:42:39 +02:00
parent a171b2b9b0
commit bc000fcbab
4 changed files with 17 additions and 9 deletions
-2
View File
@@ -55,7 +55,6 @@ namespace IfcWrite {
};
class Derived {};
private:
IfcAbstractEntity* entity;
boost::variant<
// A null argument, it will always serialize to $
boost::none_t,
@@ -108,7 +107,6 @@ namespace IfcWrite {
IfcEntityListList::ptr
> container;
public:
IfcWriteArgument(IfcAbstractEntity* e) : entity(e) {}
template <typename T> const T& as() const {
if (const T* val = boost::get<T>(&container)) {
return *val;