Removed dependency on boost when Qt is used.

This commit is contained in:
xawotihs
2015-09-24 23:20:52 +02:00
parent b4e0f2c991
commit b8b5362ba5
7 changed files with 38 additions and 16 deletions

View File

@@ -4,6 +4,15 @@
#if (__cplusplus > 199711L)
#include <memory>
typedef std::shared_ptr<JQuad> JQuadPtr;
#elif defined(QT_CONFIG)
#include <QSharedPointer>
class JQuadPtr : public QSharedPointer<JQuad>
{
public:
JQuadPtr() : QSharedPointer(){};
JQuadPtr(JQuad*ptr) : QSharedPointer(ptr){};
JQuad* get() const {return data();};
};
#else
#include <boost/shared_ptr.hpp>
typedef boost::shared_ptr<JQuad> JQuadPtr;