Код: Выделить всё
struct Base
{
virtual ~Base() = default;
};
struct Derived final : Base
{
Derived();
};
Код: Выделить всё
#include "Type.h"
Derived::Derived() = default;
Код: Выделить всё
#include "Type.h"
int main()
{
std::shared_ptr pr;
pr = std::make_shared();
auto dyncast = dynamic_cast(pr.get());
if (dyncast) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79192304/xcode-16-breaks-dynamic-cast-for-final-types-defined-in-shared-library[/url]
Мобильная версия