What is Nostr?
Coyote /
npub1w7x…pc4w
2025-01-20 22:37:28
in reply to nevent1q…je23

Coyote on Nostr: bonkmaykr What is the vector's template parameter? If it's ...

bonkmaykr (nprofile…kwjl) What is the vector's template parameter? If it's std::vector<o_worldObjectGeneric> it'll still allow you to push derived objects, but it'll copy construct an o_worldObjectGeneric instead of pushing the entire derived object on the vector. Look at this; notice how despite calling push_back with four different objects, only "A copy construct" will be printed between "Before push_back" and "After push_back."
Author Public Key
npub1w7x9m8xutlezyzmu7d78d8ygzk6sdpncfuuds8jsz2wnwk8f52dqkrpc4w