User profile: seeplus

User info
User name:seeplus
History
Joined:
Number of posts:6644
Latest posts:

Interacting with a vector of objects derived from base class
[quote]Like for a game where the player can have different types of items in their inventory but the...

What's the proper way to set a std::vector to another std::vector?
The OP doesn't want to assign a complete vector to another. The OP wants to remove items from a vect...

What's the proper way to set a std::vector to another std::vector?
Also consider remove_if() on tets_to_use. You're not trying to set a std::vector to another std::vec...

Can I make this a constexpr?
The code below compiles OK with MS VS2022: [code] typedef float real; struct Vector3 { real x; r...

ChatGPT is too smart
Have you seen Dave Plummer's new video re AI writing c code? He uses AI to produce a Notepad applica...