Skip to content

Commit

Permalink
Make attribute::get_atoms a virtual function override
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelgk committed Sep 5, 2024
1 parent cf998ac commit ef02bd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/c74_min_attribute.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ class attribute_base
// All attributes must define what happens when you get their value.

virtual operator atoms() const = 0;
virtual atoms get_atoms() const = 0;

// All attributes must define what happens when asked for their range of values.
// The range must be in string format, values separated by spaces.
Expand Down Expand Up @@ -649,7 +650,7 @@ class attribute : public attribute_base
/// Get the attribute value as a vector of atoms.
/// @return The value of the attribute

atoms get_atoms() const
atoms get_atoms() const override
{
if (m_getter) {
return m_getter();
Expand Down

0 comments on commit ef02bd5

Please sign in to comment.