From d71df77ed885c82250e1f3b9196f097069bc1b16 Mon Sep 17 00:00:00 2001
From: Simon Praetorius <simon.praetorius@tu-dresden.de>
Date: Fri, 3 Jun 2011 17:22:16 +0000
Subject: [PATCH] Initfile parser - small changes

---
 AMDiS/src/Initfile.h | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/AMDiS/src/Initfile.h b/AMDiS/src/Initfile.h
index 71c80a1a..feca4c14 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.
-- 
GitLab