News for hackers. Stuff that matters.
Re:Why I don't spend time with Modern C++ anymore by Ygg2 on Wednesday May 18, 2016 @01:27PM (#11723755)
This is also what I attempted, and as I remember it didn't work either, though to be honest I was really worn out fighting the obscure compiler errors by that point, I might have missed a sigil somewhere.

I spent good solid 30min trying to understand why defining and not defining my constructor was causing issues, to realize that the constructor error was actually a previous error, somewhere above the constructor.

Rust, also notes where and how you created an infinite loop.

Re:Why I don't spend time with Modern C++ anymore by netheril96 on Wednesday May 18, 2016 @04:33PM (#11725668)
Your compile error is likely because you use references instead of pointers. Reference as a class member is really hard to get right because it can be initialized only once, and cannot be copied or moved.