1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
snitch.cpp: In function ‘int main(int, char**)’:
snitch.cpp:21:37: error: use of deleted function ‘Lexer::Lexer(const Lexer&)’
21 | Parser parser = Parser(lexer);
| ^
In file included from snitch.cpp:3:
lexer.h:9:7: note: ‘Lexer::Lexer(const Lexer&)’ is implicitly deleted because the default definition would be ill-formed:
9 | class Lexer
| ^~~~~
lexer.h:9:7: error: use of deleted function ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::basic_stringstream(const std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
In file included from /usr/include/c++/11/bits/quoted_string.h:38,
from /usr/include/c++/11/iomanip:45,
from /usr/include/c++/11/bits/fs_path.h:39,
from /usr/include/c++/11/filesystem:45,
from file.h:7,
from snitch.cpp:2:
/usr/include/c++/11/sstream:1057:7: note: declared here
1057 | basic_stringstream(const basic_stringstream&) = delete;
| ^~~~~~~~~~~~~~~~~~
In file included from snitch.cpp:4:
parser.h:15:22: note: initializing argument 1 of ‘Parser::Parser(Lexer)’
15 | Parser(Lexer lexer);
| ~~~~~~^~~~~
In file included from token.h:4,
from parser.h:4,
from parser.cpp:1:
lexer.h:40:9: error: ‘Token’ does not name a type
40 | Token get_token();
| ^~~~~
parser.cpp: In constructor ‘Parser::Parser(Lexer)’:
parser.cpp:5:23: error: use of deleted function ‘Lexer& Lexer::operator=(const Lexer&)’
5 | this->lexer = lexer;
| ^~~~~
In file included from token.h:4,
from parser.h:4,
from parser.cpp:1:
lexer.h:9:7: note: ‘Lexer& Lexer::operator=(const Lexer&)’ is implicitly deleted because the default definition would be ill-formed:
9 | class Lexer
| ^~~~~
lexer.h:9:7: error: use of deleted function ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>& std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::operator=(const std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’
In file included from lexer.h:6,
from token.h:4,
from parser.h:4,
from parser.cpp:1:
/usr/include/c++/11/sstream:1101:7: note: declared here
1101 | operator=(const basic_stringstream&) = delete;
| ^~~~~~~~
In file included from /usr/include/stdio.h:33,
from /usr/include/c++/11/cstdio:42,
from /usr/include/c++/11/ext/string_conversions.h:43,
from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from parser.h:3,
from parser.cpp:1:
|