Hi all,
in an existing code I found this notation:
PINK* boon = static_cast<PINK*>(car.get());
where car is a shared pointer to a container and PINK a specific class. Now I know I can access the attributes of boon something like:
boon->name
What I wonder is: what is now boon? I imagine is a pointer. If so, can I pass boon->name to a function that accepts a float variable? What type is boon->name ?
Sorry but I am still confused with pointers/references and so on.
Hi Galik,
OK, so if in PINK class name is of double type, so it is boon->name. Can I pass it to a function which only accepts double variables? Or should I make a copy before going on, like