Skip to content

Commit

Permalink
* fixed members inlining, they cant be inline if compiled to library…
Browse files Browse the repository at this point in the history
… and being in the *.cpp
  • Loading branch information
brainpower committed Jun 2, 2014
1 parent 1919778 commit 8df2848
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cpp/src/checkarg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,32 +39,32 @@ CheckArgPrivate::CheckArgPrivate(CheckArg* ca, const int argc, char** argv, cons
usage_line(appname + " [options]") {}


// small inline functions
inline void
void
CheckArg::set_posarg_help(const std::string &usage, const std::string &descr ) {
p->posarg_help_usage = usage;
p->posarg_help_descr = descr;
}

inline void
void
CheckArg::set_usage_line(const std::string &str) {
p->usage_line = str;
}
inline std::string

std::string
CheckArg::argv0() {
return p->argv[0];
}

inline std::vector<std::string>
std::vector<std::string>
CheckArg::pos_args() const {
return p->pos_args;
}


inline std::string
std::string
CheckArg::str_err(const int errno){ return CheckArgPrivate::errors[errno]; }

inline void
void
CheckArgPrivate::ca_error(int eno, const std::string &info, ...) const {
#ifdef CA_PRINTERR
va_list al;
Expand Down

0 comments on commit 8df2848

Please sign in to comment.