Skip to content

Commit

Permalink
Fix non-const instance::getValueFeature
Browse files Browse the repository at this point in the history
  • Loading branch information
Malcohol committed Jul 21, 2024
1 parent c8c520d commit 1f02c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BabelWiresLib/Instance/instanceTemplates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace babelwires {
}
VALUE_FEATURE& getValueFeature() const { return m_valueFeature; }
template <typename VALUE_FEATURE_M = VALUE_FEATURE>
std::enable_if_t<!std::is_const_v<VALUE_FEATURE_M>, VALUE_FEATURE> getValueFeature() {
std::enable_if_t<!std::is_const_v<VALUE_FEATURE_M>, VALUE_FEATURE&> getValueFeature() {
return m_valueFeature;
}
const VALUE_TYPE& getInstanceType() const { return m_valueFeature.getType().template is<VALUE_TYPE>(); }
Expand Down

0 comments on commit 1f02c17

Please sign in to comment.