aboutsummaryrefslogtreecommitdiff
path: root/src/support/dom/document_cache.h
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-04-25 20:42:08 +0200
committerAdrian Kummerlaender2020-04-25 20:42:08 +0200
commit6d353960542e5c95f29d45b9359db25945a414a4 (patch)
treecfdc4fdc02a3bf89c73708380d71774b9445ae8a /src/support/dom/document_cache.h
parentd4f3c3d2f61616e09d01cc927ba0dbdc393d25a0 (diff)
downloadInputXSLT-6d353960542e5c95f29d45b9359db25945a414a4.tar
InputXSLT-6d353960542e5c95f29d45b9359db25945a414a4.tar.gz
InputXSLT-6d353960542e5c95f29d45b9359db25945a414a4.tar.bz2
InputXSLT-6d353960542e5c95f29d45b9359db25945a414a4.tar.lz
InputXSLT-6d353960542e5c95f29d45b9359db25945a414a4.tar.xz
InputXSLT-6d353960542e5c95f29d45b9359db25945a414a4.tar.zst
InputXSLT-6d353960542e5c95f29d45b9359db25945a414a4.zip
Fix std::unique_ptr custom deleter issue
Somehow the previous custom deleter for xercesc::DOMDocument fails invokable assertions planet a compiler update. A lambda function with the same signature wors for some reason…
Diffstat (limited to 'src/support/dom/document_cache.h')
-rw-r--r--src/support/dom/document_cache.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/support/dom/document_cache.h b/src/support/dom/document_cache.h
index f472249..115d194 100644
--- a/src/support/dom/document_cache.h
+++ b/src/support/dom/document_cache.h
@@ -8,22 +8,17 @@
#include <mutex>
#include <stack>
#include <memory>
+#include <functional>
#include "common.h"
namespace InputXSLT {
class DomDocumentCache {
- class document_deleter {
- friend std::unique_ptr<xercesc::DOMDocument, document_deleter>;
-
- void operator()(xercesc::DOMDocument*);
- };
-
public:
typedef std::unique_ptr<
xercesc::DOMDocument,
- document_deleter
+ std::function<void(xercesc::DOMDocument*)>
> document_ptr;
static document_ptr createDocument();