Impact of removing the const is that we need to remove these
CompAction & CompOption::Value::action () { try { return boost::get<CompAction>(mValue); } catch (...) { return emptyAction (); } }
CompMatch & CompOption::Value::match () { try { return boost::get<CompMatch>(mValue); } catch (...) { return emptyMatch (); } }
CompString & CompOption::Value::s () { try { return boost::get < CompString > (mValue); } catch (...) { return emptyString (); } }
which I am +1 for but I'm not sure how much client code uses these
« Back to merge proposal
Impact of removing the const is that we need to remove these
CompAction & :Value: :action () get<CompAction> (mValue) ;
CompOption:
{
try
{
return boost::
}
catch (...)
{
return emptyAction ();
}
}
CompMatch & :Value: :match () get<CompMatch> (mValue) ;
CompOption:
{
try
{
return boost::
}
catch (...)
{
return emptyMatch ();
}
}
CompString & :Value: :s ()
CompOption:
{
try
{
return boost::get < CompString > (mValue);
}
catch (...)
{
return emptyString ();
}
}
which I am +1 for but I'm not sure how much client code uses these