Is required for class templates to be instantiated to use only pointer or reference to them?
When using just pointers/references to std::variant<T…> defined from T… where some of T is only forward declared – I have this problem that I cannot even use pointers nor references to this std::variant – because its bases classes wanted to be instantiated – and they require std::is_default_constructible and other traits. See example code: #include <variant>… Read More Is required for class templates to be instantiated to use only pointer or reference to them?