Skip to content

Commit

Permalink
[max] minor fixes to mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Feb 27, 2024
1 parent c6427d3 commit 2304952
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions include/avnd/binding/max/to_atoms.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ struct to_list
{
atom_setsym(&atoms.emplace_back(), gensym(v.data()));
}
void operator()(const std::string& v) noexcept
{
atom_setsym(&atoms.emplace_back(), gensym(v.data()));
}
void operator()(const avnd::variant_ish auto& f) noexcept
{
visit(*this, f);
Expand All @@ -57,14 +61,6 @@ struct to_list
});
}

void operator()(const avnd::vector_ish auto& f) noexcept
{
atoms.reserve(atoms.size() + f.size());
for(auto& v : f) {
(*this)(v);
}
}

template<typename T, std::size_t N>
void operator()(const std::array<T, N>& f) noexcept
{
Expand Down

0 comments on commit 2304952

Please sign in to comment.