I came across this odd forward declaration (or something) where instead of having a normal:
class A;
class B{
A* var;
}
You can do
class B{
class A* var;
}
Now this might be an elaborated type specifier, but I'm not sure about that. I've tried it myself and I had no issues, even made my code a lot more cleaner, but I'm afraid it may cause scoping issues that I'm currently unaware of.
Does anyone have an insight on this? is this a valid forward deceleration?
example: https://youtu.be/EIptJ0YrYg0?t=412