Base: use forward declaration instead of including Python.h
This commit is contained in:
@@ -24,10 +24,12 @@
|
||||
#ifndef BASE_EXCEPTIONFACTORY_H
|
||||
#define BASE_EXCEPTIONFACTORY_H
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
#include "Factory.h"
|
||||
#include <typeinfo>
|
||||
|
||||
// Python stuff
|
||||
typedef struct _object PyObject;
|
||||
|
||||
namespace Base
|
||||
{
|
||||
@@ -36,8 +38,7 @@ namespace Base
|
||||
class BaseExport AbstractExceptionProducer : public AbstractProducer
|
||||
{
|
||||
public:
|
||||
AbstractExceptionProducer () {}
|
||||
~AbstractExceptionProducer() {}
|
||||
AbstractExceptionProducer () = default;
|
||||
// just implement it
|
||||
void* Produce () const {
|
||||
return nullptr;
|
||||
@@ -59,8 +60,7 @@ public:
|
||||
private:
|
||||
static ExceptionFactory* _pcSingleton;
|
||||
|
||||
ExceptionFactory(){}
|
||||
~ExceptionFactory(){}
|
||||
ExceptionFactory() = default;
|
||||
};
|
||||
|
||||
/* Producers */
|
||||
|
||||
Reference in New Issue
Block a user