We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43277c2 commit 279bcf2Copy full SHA for 279bcf2
ProgramOptions.hxx
@@ -1154,13 +1154,16 @@ namespace po {
1154
}
1155
#endif // PROGRAMOPTIONS_DEBUG
1156
1157
- value_vector_base& get_vector() const {
+ value_vector_base const& get_vector() const {
1158
PROGRAMOPTIONS_ASSERT( available(), "cannot access an option with neither user set value nor fallback" );
1159
if( m_data != nullptr )
1160
return *m_data;
1161
else
1162
return *m_fallback;
1163
1164
+ value_vector_base& get_vector() {
1165
+ return const_cast< value_vector_base& >( static_cast< option const& >( *this ).get_vector() );
1166
+ }
1167
1168
parsing_report< value > make_value() const {
1169
if( get_type() == void_ )
0 commit comments