Hmmm while you cannot specifically have "garbage collection" in C++. There are ways to use specifically designed objects that handle memory de-allocation automatically for you.
This is pretty much the same as having garbage collection. Except that the memory is freed when the object goes out of scope, instead of at some undetermined point in the future. You also don't have the overhead of a garbage collector.