Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxnyasha committed Mar 11, 2024
1 parent 8e942ae commit 30b890b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions universal/include/userver/formats/universal/universal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ class SerializationConfig {
template <utils::ConstexprString fieldName>
inline constexpr auto& With(FieldConfig<impl::kFieldTypeOnIndex<T, impl::getFieldIndexByName<T>(fieldName)>>&& field_config) {
constexpr auto Index = impl::getFieldIndexByName<T>(fieldName);
static_assert(Index != boost::pfr::tuple_size_v<T>, "Field Not Found");
std::get<Index>(this->fields_config) = std::move(field_config);
return *this;
}
Expand All @@ -235,8 +234,9 @@ class SerializationConfig<std::variant<Ts...>> {
inline constexpr auto& With(FieldConfig<T>&& field_config) {
return this->With<Find<T>(utils::impl::TypeList<Ts...>{})>(std::move(field_config));
}
inline constexpr SerializationConfig() = default;
private:
std::tuple<FieldConfig<Ts>...> variant_config;
std::tuple<FieldConfig<Ts>...> variant_config = {};
};


Expand Down

0 comments on commit 30b890b

Please sign in to comment.