This commit is contained in:
marcel 2021-04-28 15:27:41 +02:00
parent 7a984e275a
commit 8783c5ef96

View File

@ -119,7 +119,8 @@ struct as_if<Node, S> {
return fallback; return fallback;
try { try {
node.reset(node); Node n;
n.reset(node);
return node; return node;
} catch (conversion::DecodeException& e) { } catch (conversion::DecodeException& e) {
return fallback; return fallback;
@ -129,14 +130,6 @@ struct as_if<Node, S> {
} }
}; };
template <typename S> template <typename S>
struct as_if<std::string, S> { struct as_if<std::string, S> {
explicit as_if(const Node& node_) : node(node_) {} explicit as_if(const Node& node_) : node(node_) {}