Comment copier un objet et son contenu dans un autre objet
Tout est dans le titre.
Code:
1 2 3 4
| void Menu::SetTextStyle(Text ptext)
{
text = ptext;
} |
Code:
1 2 3 4 5 6 7
|
||=== Build: Debug in THELAST (compiler: GNU GCC Compiler) ===|
include\Menu.h|10|warning: direct base 'Window' inaccessible in 'Menu' due to ambiguity|
C:\Users\sophie\Desktop\THELAST\src\Menu.cpp||In member function 'void Menu::SetTextStyle(Text)':|
C:\Users\sophie\Desktop\THELAST\src\Menu.cpp|11|error: use of deleted function 'Text& Text::operator=(const Text&)'|
include\Text.h|9|note: 'Text& Text::operator=(const Text&)' is implicitly deleted because the default definition would be ill-formed:|
include\Text.h|9|error: non-static const member 'const char Text::fontname', can't use default assignment operator| |