Code: Select all
#include
#include
template
struct Bar
{
Bar() = default;
Bar(const Bar&) = delete;
};
template
struct Foo : public Bar
{
Foo() = default;
Foo(const Foo& other) : Bar(other) {}
};
int main() {
std::cout
Code: Select all
#include
#include
template
struct Bar
{
Bar() = default;
Bar(const Bar&) = delete;
};
template
struct Foo : public Bar
{
Foo() = default;
Foo(const Foo& other) : Bar(other) {}
};
int main() {
std::cout