X-Git-Url: https://git.dlugolecki.net.pl/?p=command.git;a=blobdiff_plain;f=include%2Foption.h;h=d9630a798b486bed5225e802d09c519e85c4ef4c;hp=7e9917b589c7021a0c5852695e90eecb5fa36908;hb=eaf888960119de8ce2190df5ffed7325f540cb8d;hpb=ae6743a2a2c69b7a927f64ff1d3abf38a5e7d4bc diff --git a/include/option.h b/include/option.h index 7e9917b..d9630a7 100644 --- a/include/option.h +++ b/include/option.h @@ -44,7 +44,7 @@ namespace command { * @param description Description of current Option * @param function Function used to handle current Option. */ - Option(const std::string & name, const std::string & description, void (*function)(ParameterType)) + Option(const std::string & name, const std::string & description, std::function function) : Parameter(description), Callable(function), name(name) { } @@ -158,7 +158,7 @@ namespace command { * @param description Description of current Option * @param function Function used to handle current Option. */ - Option(const std::string & name, const std::string & description, void (*function)(void)) + Option(const std::string & name, const std::string & description, std::function function) : Parameter(description), Callable(function), name(name) { }