Skip to content

The std::vector argument to addMetaEvent should be const.#56

Open
dewhisna wants to merge 1 commit intocraigsapp:masterfrom
dewhisna:addMetaEvent_const
Open

The std::vector argument to addMetaEvent should be const.#56
dewhisna wants to merge 1 commit intocraigsapp:masterfrom
dewhisna:addMetaEvent_const

Conversation

@dewhisna
Copy link

The version of the addMetaEvent function that takes the metaData as a std::vector type should accept that std::vector argument as a const type. Otherwise, callers of this function that pass data from constant member functions and/or retrieve their data from constant getter functions have to either do a const_cast or declare their own types mutable and/or add temporary variables of a non-const type when they shouldn't need to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant