fixes
This commit is contained in:
parent
8783c5ef96
commit
e40fa447d8
@ -100,7 +100,7 @@ struct as_if {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
return convert<T>::decode(node);
|
return convert<T>::decode(node);
|
||||||
} catch (conversion::DecodeException& e) {
|
} catch (const conversion::DecodeException& e) {
|
||||||
return fallback;
|
return fallback;
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
std::rethrow_exception(std::current_exception());
|
std::rethrow_exception(std::current_exception());
|
||||||
@ -122,7 +122,7 @@ struct as_if<Node, S> {
|
|||||||
Node n;
|
Node n;
|
||||||
n.reset(node);
|
n.reset(node);
|
||||||
return node;
|
return node;
|
||||||
} catch (conversion::DecodeException& e) {
|
} catch (const conversion::DecodeException& e) {
|
||||||
return fallback;
|
return fallback;
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
std::rethrow_exception(std::current_exception());
|
std::rethrow_exception(std::current_exception());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user