This commit is contained in:
marcel 2021-04-28 16:24:01 +02:00
parent 8783c5ef96
commit e40fa447d8

View File

@ -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());