C++ - Reddit
223 subscribers
48 photos
8 videos
24.7K links
Stay up-to-date with everything C++!
Content directly fetched from the subreddit just for you.

Join our group for discussions : @programminginc

Powered by : @r_channels
Download Telegram
Ported my small experimental game engine over to C++17 with modules-ts

Hey guys, just thought I'd show a video I made of my engine running on Android. It's only about 100,000 lines of code. I only include headers for the occasional define.



My dev enviroment is
Compiler: Clang trunk
IDE: Visual Studio
Language: C++17 with modules-ts

https://www.youtube.com/watch?v=39gv9XvvJAo&feature=youtu.be
https://imgur.com/a/iTycpvw

https://redd.it/8dseea
@r_cpp
Wrapper for STL algorithm library?

I often find myself calling STL algorithms on whole containers. For example:

auto i = std::find(c.begin(), c.end(), value);

std::fill(c.begin(), c.end(), value);

Is there a wrapper library that allows me to write the following shorter code instead?

auto i = find(c, value);

fill(c, value);


https://redd.it/8he32w
@r_cpp
c++ socket accept, list of connected clients

Hello, i have a few question about socket in c++!
First question, let's say that he writes a server for the game in which he will play 200 people at once, but accept is blocked because he already serves one client, how to deal with it?
Second question, how to download a list of all currently connected clients, so that you can then send a package to everyone?

https://redd.it/8hhr0k
@r_cpp