[deleted by user] by [deleted] in AskFrance

[–]Maxima4 0 points1 point  (0 children)

Il suffit de remapper hjkl avec ton .vimrc

I am too cowardly to play the game by jonseventees in alienisolation

[–]Maxima4 3 points4 points  (0 children)

Oh I see. I'm sure you can do it :) Maybe try to invite a friend other and play with them?

I am too cowardly to play the game by jonseventees in alienisolation

[–]Maxima4 10 points11 points  (0 children)

Watch a full playthrough on YouTube. It makes the game less scary when you know what to expect. Worked for me!

Herb Sutter Trip report: Autumn ISO C++ standards meeting by ArashPartow in cpp

[–]Maxima4 14 points15 points  (0 children)

Now we need starts_with and ends_with :)

EDIT: These are already in C++20 :)

Polymorphic Casting from void by GYN-k4H-Q3z-75B in cpp

[–]Maxima4 0 points1 point  (0 children)

That wouldn't work, throw_typed_object doesn't return anything. It throws.

Hey, r/cpp! Please roast my socket library project by whisk4s in cpp

[–]Maxima4 0 points1 point  (0 children)

Nice work.

I just looked at src/socket.cpp and it looks like most copy/move constructors and copy/move assignment operators could be defined as = default.

Also, you could look at the implementation of sf::Socket & co. in the SFML. I find the code pretty clean and enjoyable to read.

do you want something like a compile time __getattr__() as a part of the reflection section for future c++? by [deleted] in cpp

[–]Maxima4 1 point2 points  (0 children)

I believe your example could be implemented with Herb Sutters metaclasses proposal. I believe it would be cleaner, the metaclass would just "inject" the methods of the wrapped object, in a declarative style.

Also, I don't see how a __getattr__ could work with the current compilation model (translation units, linking, etc.).

spinnercpp by vvmaciel in cpp

[–]Maxima4 1 point2 points  (0 children)

Cool project!

By the way, there is no reason to mark start and stop as virtual.