even if somebody has a use case with a lot of configuration options he or she could do that similar to:
struct add_options { mir::Server * server; add_options(Server* server) : server(server){} add_options const& operator()(std::string const& option, std::string const& description, int default_value) const { return server->add_configuration_option(option, description, default_value); return *this; } .... };
not needing any further support from the mir api. Still I guess nobody will do it, since it requires probably more lines of code than one can gain with it.. So I vote for leaving it out.
« Back to merge proposal
even if somebody has a use case with a lot of configuration options he or she could do that similar to:
struct add_options options( Server* server) : server(server){} )(std:: string const& option, std::string const& description, int default_value) const >add_configurat ion_option( option, description, default_value);
{
mir::Server * server;
add_
add_options const& operator(
{
return server-
return *this;
}
....
};
not needing any further support from the mir api. Still I guess nobody will do it, since it requires probably more lines of code than one can gain with it.. So I vote for leaving it out.