Код: Выделить всё
#include
struct A {
A() = default;
A(const A&) = default;
A(A&&) = default;
virtual ~A() = default;
template
operator T() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78433427/gcc-vs-clang-templated-conversional-operator-in-hierarchy-of-inheritance[/url]
Мобильная версия