no using global namespace

This commit is contained in:
Shautvast 2024-10-27 15:48:19 +01:00
parent e3c729550e
commit 47b33bf276
4 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -3,7 +3,7 @@
#include <iostream>
#include <memory>
using namespace std;
using std::string, std::to_string, std::vector;
Expression::~Expression() = default;

View file

@ -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},

View file

@ -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) {}