diff --git a/mdio/variable.h b/mdio/variable.h index a04818e..f773862 100644 --- a/mdio/variable.h +++ b/mdio/variable.h @@ -843,16 +843,15 @@ class Variable { mdio::SliceDescriptor err; std::apply( [&](const auto&... desc) { - size_t idx = 0; - (( - [&] { - if (idx == preconditionStatus) { - err = desc; - } - idx++; - }(), - idx), - ...); + size_t idx = 0; + (( + [&] { + if (idx == preconditionStatus) { + err = desc; + } + idx++; + }() + ), ...); }, tuple_descs); return absl::InvalidArgumentError( @@ -1040,7 +1039,7 @@ class Variable { */ template Result UpdateAttributes(const nlohmann::json& newAttrs) { - auto res = (*attributes)->FromJson(newAttrs); + auto res = (*attributes)->template FromJson(newAttrs); if (res.status().ok()) { // Create a new UserAttributes object and update the inner std::shared_ptr *attributes = std::make_shared(res.value());