@@ -102,27 +102,27 @@ namespace pfasst
102102
103103
104104 template <typename T>
105- static const T get_value (const string& name, const T& default_val)
105+ inline static T get_value (const string& name, const T& default_val)
106106 {
107107 return Options::get_instance ().get_variables_map ().count (name)
108108 ? Options::get_instance ().get_variables_map ()[name].as <T>() : default_val;
109109 }
110110
111111
112112 template <typename T>
113- static const T get_value (const string& name)
113+ inline static T get_value (const string& name)
114114 {
115115 return Options::get_instance ().get_variables_map ()[name].as <T>();
116116 }
117117
118118
119- static bool no_params_given ()
119+ inline static bool no_params_given ()
120120 {
121121 return Options::get_instance ().get_variables_map ().empty ();
122122 }
123123
124124
125- static string pretty_print ()
125+ inline static string pretty_print ()
126126 {
127127 stringstream s;
128128 s << " Logging Options:" << endl
@@ -140,7 +140,7 @@ namespace pfasst
140140 /* *
141141 * @returns empty string if params are set and `if_no_params` is `true`
142142 */
143- static string print_help (bool if_no_params = false )
143+ inline static string print_help (bool if_no_params = false )
144144 {
145145 if (!if_no_params || (if_no_params && no_params_given ())) {
146146 return pretty_print ();
@@ -150,14 +150,14 @@ namespace pfasst
150150 }
151151
152152
153- static void init_global_options (po::options_description& opts)
153+ inline static void init_global_options (po::options_description& opts)
154154 {
155155 opts.add_options ()
156156 (" help,h" , " display this help message" );
157157 }
158158
159159
160- static void init_config ()
160+ inline static void init_config ()
161161 {
162162 Options::get_instance ()
163163 .register_init_function (" Global Options" ,
@@ -168,7 +168,7 @@ namespace pfasst
168168 }
169169
170170
171- static void read_commandline (int argc, char * argv[], bool exit_on_help = true )
171+ inline static void read_commandline (int argc, char * argv[], bool exit_on_help = true )
172172 {
173173 po::parsed_options parsed = po::command_line_parser (argc, argv)
174174 .options (Options::get_instance ().get_all_options ())
@@ -188,7 +188,7 @@ namespace pfasst
188188 /* *
189189 * @throws invalid_argument if the given file could not be opened
190190 */
191- static void read_config_file (string file_name)
191+ inline static void read_config_file (string file_name)
192192 {
193193 ifstream ifs (file_name.c_str (), ios_base::in);
194194 if (!ifs) {
0 commit comments