Use boost::shared_ptr

Fixes https://github.com/IfcOpenShell/IfcOpenShell/issues/17
This commit is contained in:
aothms
2016-01-25 14:42:41 +01:00
parent 9b13ed3f38
commit ed8cc620ea
10 changed files with 26 additions and 71 deletions
+5 -5
View File
@@ -23,7 +23,7 @@
#include <sstream>
#include <vector>
#include "../ifcparse/SharedPointer.h"
#include <boost/shared_ptr.hpp>
namespace util {
class string_buffer {
@@ -51,12 +51,12 @@ namespace util {
std::string str() const { std::stringstream ss; ss << d; return ss.str(); }
};
private:
std::vector< SHARED_PTR<item> > items;
std::vector< boost::shared_ptr<item> > items;
void clear();
void assign(const std::vector< SHARED_PTR<item> >& other);
void assign(const std::vector< boost::shared_ptr<item> >& other);
public:
SHARED_PTR<string_item> add(const std::string& s);
SHARED_PTR<float_item> add(const double& d);
boost::shared_ptr<string_item> add(const std::string& s);
boost::shared_ptr<float_item> add(const double& d);
std::string str() const;
};
}