Im currrently having issues accessing a member of a child object when it is in a base vector, I know it is an object slicing issue, im trying to use dynamic casting but im a beginner and am not really sure on the syntax or how to use it, any help would be appreciated pseudocode:
class Base {}
Class Derived : public base {
bool A
}
std::vector<Base*> items;
Item* i = new Derived(constructor);
items.push_back(i);
// items[0]->A isnt accessible due to object slicing