News for hackers. Stuff that matters.
Re:Why I don't spend time with Modern C++ anymore by humanrebar on Wednesday May 18, 2016 @08:12AM (#11721323)
Right. C++ objects are values, not references to values like in almost all other languages. So C++ needs to know the sizes of everything to construct them. If you tried to write out the mathematical series describing the ultimate size you would need to allocate for A or B, you would end up with a value approaching infinity.
Re:Why I don't spend time with Modern C++ anymore by TheCoelacanth on Wednesday May 18, 2016 @10:49AM (#11722354)
This is probably my favorite thing about C++. Values are so much easier to reason about than references.