Skip to content
Snippets Groups Projects
Commit 54d3c463 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

abstraction: allow constant retrieval of value from value holder

parent f42416ff
No related branches found
No related tags found
1 merge request!221New normalization
......@@ -23,6 +23,10 @@ public:
Type && getValue ( ) override {
return std::move ( m_data.value ( ) );
}
const Type & getValue ( ) const override {
return m_data.value ( );
}
};
 
template < class Type >
......@@ -39,6 +43,10 @@ public:
Type && getValue ( ) override {
return std::move ( m_data->get ( ) );
}
const Type & getValue ( ) const override {
return m_data->get ( );
}
};
 
template < class Type >
......
......@@ -15,6 +15,8 @@ public:
 
virtual Type && getValue ( ) = 0;
 
virtual const Type & getValue ( ) const = 0;
};
 
template < class ParamType >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment