Changes in libcfa/src/parseargs.hfa [d411769c:fd54fef]
- File:
-
- 1 edited
-
libcfa/src/parseargs.hfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/parseargs.hfa
rd411769c rfd54fef 2 2 3 3 struct cfa_option { 4 int val; // reserved 4 5 char short_name; 5 6 const char * long_name; … … 13 14 static inline void ?{}( cfa_option & this ) {} 14 15 15 forall( dtype T| { bool parse(const char *, T & ); })16 forall(T & | { bool parse(const char *, T & ); }) 16 17 static inline void ?{}( cfa_option & this, char short_name, const char * long_name, const char * help, T & variable ) { 18 this.val = 0; 17 19 this.short_name = short_name; 18 20 this.long_name = long_name; … … 22 24 } 23 25 24 forall( dtype T)26 forall(T &) 25 27 static inline void ?{}( cfa_option & this, char short_name, const char * long_name, const char * help, T & variable, bool (*parse)(const char *, T & )) { 28 this.val = 0; 26 29 this.short_name = short_name; 27 30 this.long_name = long_name;
Note:
See TracChangeset
for help on using the changeset viewer.