git repos / blockattack-game

commit 75418dc5

sago007 · 2016-04-29 17:06
75418dc5d5ddf3ee3d71a080be90fbdcd87ed457 patch · browse files
parent 96eb7a166a65de29abd6835211370ff7a5d25c35

std::ios_base is a bit too special to have a "using".

Changed files

M source/code/common.cpp before
diff --git a/source/code/common.cpp b/source/code/common.cpp index 1938286..f351c65 100644 --- a/source/code/common.cpp +++ b/source/code/common.cpp
@@ -31,7 +31,6 @@ http://www.blockattack.net
using std::string;
using std::stringstream;
-using std::ios_base;
using std::cerr;
using std::endl;
using std::map;
@@ -73,7 +72,7 @@ double str2double(const string& str2parse) {
converter >> val;
return val;
}
- catch (ios_base::failure& f) {
+ catch (std::ios_base::failure& f) {
return 0.0;
}
}
@@ -106,7 +105,7 @@ int str2int(const string& str2parse) {
converter >> val;
return val;
}
- catch (ios_base::failure& f) {
+ catch (std::ios_base::failure& f) {
return 0;
}
}