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