Base: use forward declaration instead of including Python.h

This commit is contained in:
wmayer
2022-03-03 17:37:13 +01:00
parent 855941d5bb
commit dc1f35804d
3 changed files with 9 additions and 7 deletions

View File

@@ -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 */