In the upcoming C++23 features, the removal of garbage collection (GC) support is highlighted. This may come as a surprise to some, as one advantage of C++ over Java was its deterministic memory management without garbage collection. However, in 2008, minimal support for garbage collection and leak detection was added to C++0x. The removal of garbage collection from the standard is seen as a necessary act of language cleanup, as it was unimplemented and poorly supported. While there are existing garbage collectors for C++, they are not affected by this removal. In conclusion, the removal of garbage collection from C++23 simplifies the standard.
https://www.sandordargo.com/blog/2023/11/01/cpp23-garbage-collection