yeeted std

This commit is contained in:
Thomas 2022-01-12 22:22:01 +01:00
parent a1b3cf4ae4
commit 62257af3bf
No known key found for this signature in database
GPG Key ID: E538821A6CDFDAD7
6 changed files with 7 additions and 11 deletions

View File

@ -14,15 +14,13 @@
#include<string> #include<string>
#include<stdexcept> #include<stdexcept>
using namespace std;
/*! /*!
* @class config_error * @class config_error
* @brief Simple clone of runtime_error to help us handle errors in config management. * @brief Simple clone of runtime_error to help us handle errors in config management.
*/ */
class config_error : public runtime_error { class config_error : public std::runtime_error {
public: public:
explicit config_error(const string& msg); explicit config_error(const std::string& msg);
}; };
#endif #endif

View File

@ -25,8 +25,6 @@
#include "god.h" #include "god.h"
#include "invadersGrid.h" #include "invadersGrid.h"
using namespace std;
/*! /*!
* @class Game * @class Game
* @brief Main game class * @brief Main game class

View File

@ -15,6 +15,8 @@
#include<vector> #include<vector>
#include<string> #include<string>
using namespace std;
/*! /*!
* @struct Menu * @struct Menu
* @brief menu stuct * @brief menu stuct

View File

@ -27,8 +27,6 @@
#include "scoresManager.h" #include "scoresManager.h"
#include "mySprite.h" #include "mySprite.h"
using namespace std;
typedef nsGui::GlutFont::GlutFonts Font; typedef nsGui::GlutFont::GlutFonts Font;
/*! /*!

View File

@ -33,8 +33,6 @@
#define DEBUG_INSTR(X) #define DEBUG_INSTR(X)
#endif #endif
using namespace std;
using nsGraphics::RGBAcolor; using nsGraphics::RGBAcolor;
/*! /*!
@ -50,7 +48,7 @@ enum class WinValue{
typedef nsGraphics::Vec2D Position; typedef nsGraphics::Vec2D Position;
typedef unsigned playerID; typedef unsigned playerID;
typedef future<void> Task; typedef std::future<void> Task;
#define PLAYER1 0 #define PLAYER1 0
#define PLAYER2 1 #define PLAYER2 1

View File

@ -10,6 +10,8 @@
#include "errors.h" #include "errors.h"
using namespace std;
config_error::config_error(const string& msg) : runtime_error(msg) { config_error::config_error(const string& msg) : runtime_error(msg) {
} }