| ▲ | Panzerschrek 3 hours ago | |||||||
Does std::polymorphic require passed types to be copyable? | ||||||||
| ▲ | MFHava 23 minutes ago | parent | next [-] | |||||||
Yes, there is currently no move-only std::polymorphic, like there is a move-only std::indirect ... | ||||||||
| ▲ | aw1621107 2 hours ago | parent | prev [-] | |||||||
Looks like it depends on the specific operation(s) you want to perform [0]. For instance, constructing a std::polymorphic<T> from an object of type T or derived from T requires that that object is copy-constructible (among other requirements), but copy-assigning one std::polymorphic<T> to another only requires that T is complete. | ||||||||
| ||||||||