diff --git a/AMDiS/src/Initfile.h b/AMDiS/src/Initfile.h index 71c80a1a3f94356cf50a8e0b74c6d829ab884667..feca4c1429ebb986a358bbdc0dd888bfdfd3a52d 100644 --- a/AMDiS/src/Initfile.h +++ b/AMDiS/src/Initfile.h @@ -122,7 +122,8 @@ namespace AMDiS { template< typename T > inline void convert(const std::string valStr, T& value , typename boost::enable_if< boost::is_pod< T > >::type* p = NULL , - typename boost::disable_if< boost::is_enum< T > >::type* p2 = NULL ) { + typename boost::disable_if< boost::is_enum< T > >::type* p2 = NULL ) + { using boost::lexical_cast; try { @@ -134,7 +135,8 @@ namespace AMDiS { template< typename T > inline void convert(const std::string valStr, T& value, - typename boost::enable_if< boost::is_enum< T > >::type* p = NULL) { + typename boost::enable_if< boost::is_enum< T > >::type* p = NULL) + { unsigned int swap= 0; try { @@ -243,6 +245,10 @@ struct Initfile : public std::map< std::string, std::string > { * @param in: filename string */ static void init(std::string in); + static void init(int print, string filename, const char *flags = NULL) { + WARNING("Parameters::init(int,std::string,const char*) is depreciated. Use Parameters::init(std::string) instead!\n"); + init(filename); + } /** Static get routine for getting parameter-values from init-file initialized in init()-method. * Cast the value to the desired type using std::stringstream.