Skip to content

Commit

Permalink
Work around GCC 13 fixed_string -> string conversion error
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Kretz <[email protected]>
  • Loading branch information
mattkretz committed Sep 28, 2024
1 parent a64d4b9 commit f7644b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/include/gnuradio-4.0/Settings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class CtxSettings : public SettingsBase {
using MemberType = vir::refl::data_member_type<TBlock, kIdx>;
using RawType = std::remove_cvref_t<MemberType>;
using Type = unwrap_if_wrapped_t<RawType>;
auto memberName = std::string(vir::refl::data_member_name<TBlock, kIdx>);
auto memberName = std::string(vir::refl::data_member_name<TBlock, kIdx>.view());

if constexpr (hasMetaInfo && AnnotatedType<RawType>) {
_block->meta_information.value[memberName + "::description"] = std::string(RawType::description());
Expand Down Expand Up @@ -797,7 +797,7 @@ class CtxSettings : public SettingsBase {
using MemberType = vir::refl::data_member_type<TBlock, kIdx>;
using Type = unwrap_if_wrapped_t<std::remove_cvref_t<MemberType>>;
if constexpr (settings::isReadableMember<Type, MemberType>()) {
_activeParameters.insert_or_assign(std::string(vir::refl::data_member_name<TBlock, kIdx>),
_activeParameters.insert_or_assign(std::string(vir::refl::data_member_name<TBlock, kIdx>.view()),
static_cast<Type>(vir::refl::data_member<kIdx>(*_block)));
}
});
Expand Down Expand Up @@ -1024,7 +1024,7 @@ class CtxSettings : public SettingsBase {
using MemberType = vir::refl::data_member_type<TBlock, kIdx>;
using Type = unwrap_if_wrapped_t<std::remove_cvref_t<MemberType>>;
if constexpr (settings::isReadableMember<Type, MemberType>()) {
parameters.insert_or_assign(std::string(vir::refl::data_member_name<TBlock, kIdx>), pmtv::pmt(vir::refl::data_member<kIdx>(*_block)));
parameters.insert_or_assign(std::string(vir::refl::data_member_name<TBlock, kIdx>.view()), pmtv::pmt(vir::refl::data_member<kIdx>(*_block)));
}
});
}
Expand Down

0 comments on commit f7644b7

Please sign in to comment.