no using global namespace
This commit is contained in:
parent
e3c729550e
commit
47b33bf276
4 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
using std::string, std::vector, std::ifstream, std::cin, std::cout;
|
||||
|
||||
void print_tokens(vector<Token> *list);
|
||||
int run_file(string file);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include <iostream>
|
||||
#include <memory>
|
||||
|
||||
using namespace std;
|
||||
using std::string, std::to_string, std::vector;
|
||||
|
||||
Expression::~Expression() = default;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
using std::string, std::map, std::vector, std::cout;
|
||||
|
||||
static const map<string, Token::Type> keywords = {
|
||||
{"and", Token::Type::AND}, {"class", Token::Type::CLASS},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "tokens.hpp"
|
||||
|
||||
using namespace std;
|
||||
using std::string;
|
||||
|
||||
Token::Token(Token::Type _tokentype, string _lexeme, string _literal, int _line)
|
||||
: lexeme(_lexeme), literal(_literal), line(_line), tokentype(_tokentype) {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue