Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by algorithmsRcool on Saturday August 08, 2020 @08:47PM
(#24096418)
But that object is not a string, it is char buffer. You cannot directly substitute one for the other.
Yes I realize they can be used to store the same data, but you've defined a new type that is incompatible with an actual string object.
As for stack allocation, apparently you missed structs.
Here is your string allocated on the stack.
Providing std::string like operations is left as exercise for the reader.