Skip to content

Commit

Permalink
StdCompiler::Exception: Remove non-standard deleted copy constructor …
Browse files Browse the repository at this point in the history
…as exception objects need to be copyable
  • Loading branch information
Fulgen301 committed Sep 23, 2024
1 parent e664aa9 commit 1a12cf2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/StdCompiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,6 @@ class StdCompiler
protected:
Exception(std::string pos, std::string msg) : runtime_error{std::move(msg)}, Pos{std::move(pos)} {}

private:
// do not copy
Exception(const Exception &Exc) = delete;

public:
std::string Pos;
};
Expand Down

0 comments on commit 1a12cf2

Please sign in to comment.