Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline is required when defining in a '.h' #402

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions fflas-ffpack/utils/args-parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace FFLAS {
void parseArguments (int argc, char **argv, Argument *args, bool printDefaults = true);
}

void printHelpMessage (const char *program, Argument *args, bool printDefaults = false)
inline void printHelpMessage (const char *program, Argument *args, bool printDefaults = false)
{
int i, l;

Expand Down Expand Up @@ -153,7 +153,7 @@ void printHelpMessage (const char *program, Argument *args, bool printDefaults =

/* Find an argument in the argument list for a character */

Argument *findArgument (Argument *args, char c)
inline Argument *findArgument (Argument *args, char c)
{
int i;

Expand All @@ -174,7 +174,7 @@ Argument *findArgument (Argument *args, char c)
* @param instring list to be converted
* @return status message.
*/
int getListArgs(std::list<int> & outlist, std::string & instring)
inline int getListArgs(std::list<int> & outlist, std::string & instring)
{
int start = 0 ;
int count = 0 ;
Expand Down Expand Up @@ -231,7 +231,7 @@ namespace FFLAS {
* @param i argument index
* @return char* argument value
*/
char* getArgumentValue(int argc, char **argv,int i){
inline char* getArgumentValue(int argc, char **argv,int i){
if (i+1 < argc) {
return argv[i+1];
} else {
Expand All @@ -240,7 +240,7 @@ namespace FFLAS {
}
}

void parseArguments (int argc, char **argv, Argument *args, bool printDefaults)
inline void parseArguments (int argc, char **argv, Argument *args, bool printDefaults)
{
int i;
Argument *current;
Expand Down Expand Up @@ -345,7 +345,7 @@ namespace FFLAS {
}

/** writes the values of all arguments, preceded by the programName */
std::ostream& writeCommandString (std::ostream& os, Argument *args, const char* programName = nullptr)
inline std::ostream& writeCommandString (std::ostream& os, Argument *args, const char* programName = nullptr)
{
if (programName != nullptr)
os << programName;
Expand Down
Loading