We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79080e5 commit bf2f3bcCopy full SHA for bf2f3bc
src/parse_opts.hpp
@@ -51,6 +51,7 @@
51
#include <string>
52
#include <iostream>
53
#include <vector>
54
+#include <functional>
55
56
//! @brief Name-space of the Command-Line-Option-Parser.
57
namespace CLOP
@@ -73,8 +74,8 @@ struct OPTION
73
74
//! @retval >0 Function was not successful. \n
75
//! In this case the parser continues its work but
76
//! the return value of the parser will be -1.
- typedef int (*FUNC_T)( PARSER* );
77
-
+ using FUNC_T = std::function<int(PARSER*)>;
78
+
79
//! @brief Definition of the option-type.
80
enum ARG_REQUIRE_T
81
{
0 commit comments