X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=include%2Fargument.h;h=bf5fc3354f304c7b894252069969451275ec7fff;hb=2c6d7b737661b171a6ee730b35d90ac14d9021e2;hp=81a7cd4186e8c4be1c755b74d42829ab7e0fb25b;hpb=f2d683504e2dc76868ec84d7c1fd858edc0df5a4;p=command.git diff --git a/include/argument.h b/include/argument.h index 81a7cd4..bf5fc33 100644 --- a/include/argument.h +++ b/include/argument.h @@ -4,6 +4,7 @@ #include #include #include +#include #include "parameter.h" #include "callable.h" @@ -31,7 +32,7 @@ namespace command { * @param description Description of current Argument * @param function Function used to handle current Argument. */ - Argument(const std::string & description, void (*function)(ParameterType)) + Argument(const std::string & description, std::function function) : Parameter(description), Callable(function) { }