fixes
This commit is contained in:
parent
7a984e275a
commit
8783c5ef96
@ -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_) {}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user