AZ
Size: a a a
AZ
AZ
TS
DB
DB
ПК
DB
DB
DB
TW
TS
TW
DB
LA
DB
DB
TS
🏥K
class A : class existingB является child A. как мне правильно сделать форвард декларацию, чтобы и каст работал, и функцию можно было вызывать? классы определены в cpp файле, ибо они нигде больше не нужны. надеюсь, объяснил понятно. заранее благодарю.
{
void func()
{
static_cast<B*>(this->getParent())->func(); //existing*
}
};
class B : class existing
{
void func()
{
//do smth
//здесь используется A
}
};
LA
UTF-8 encoded string literal. The type of a u8"..." string literal is const char[N] (until C++20)const char8_t[N] (since C++20), where N is the size of the string in UTF-8 code units including the null terminator.
TS
std::cout << "\u00C7";
Ç