Use shared ptr for line filenames to be able to still use filenames when original file has been closed

This commit is contained in:
Jan
2021-11-22 10:52:43 +01:00
parent 6b7a71a1bb
commit a8f0fbd3bb
16 changed files with 50 additions and 55 deletions

View File

@ -1,13 +1,14 @@
#pragma once
#include <istream>
#include <memory>
#include "Parsing/IParserLineStream.h"
class ParserSingleInputStream final : public IParserLineStream
{
std::istream& m_stream;
std::string m_file_name;
std::shared_ptr<std::string> m_file_name;
int m_line_number;
public: