C++ - Reddit
رفتن به کانال در Telegram
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
نمایش بیشتر228
مشترکین
اطلاعاتی وجود ندارد24 ساعت
-27 روز
-130 روز
آرشیو پست ها
227
[RFC][patch for gcc12][version 1] add -ftrivial-auto-var-init and variable attribute "uninitialized" to gcc
https://gcc.gnu.org/pipermail/gcc-patches/2021-February/565514.html
https://redd.it/lrloyy
@r_cpp
227
Can I make a c++ bot (kind of) that joins microsoft teams meetings?
I would like to make a bot that checks in specific class (let's say math) if the meet started (if yes, it will join). Can I make something like this using c++? I would like to use my bot with the downloaded MC Teams not with the web version (so without web scraping and stuff). I would just like to make a small app in visual studio maybe where I can turn on and off my "bot"
https://redd.it/lralaw
@r_cpp
227
We really need a way of statically checking exceptions in C++.
How are we supposed to write robust code, if missing catching a single exception is an instant crash, and there is no static testing available to check that we are catching all (or even some) exceptions?
https://redd.it/lr5o0i
@r_cpp
227
C++20 Simple-Log - multithreaded logging library
Hello,
today I "released" my first alpha of my new c++20 logging library. It is mainly based on loosely coupled concepts and aimed for high extensibility. I'm looking now for feedback which may help to improve the library.
Github link: https://github.com/DNKpp/Simple-Log
Docu link: https://dnkpp.github.io/Simple-Log/
Examples: https://dnkpp.github.io/Simple-Log/examples.html
​
As a quick introduction, the library mainly consists of three different parts. The core, which is the centre of the whole library and has to be instantiated at least once (but is not limited to), currently two different Sink types (one general std::ostream orientated and the other one is FileSink) and a Logger class, which simply acts as an entry point for generating new Records.
What comes next:
Well it depends a bit on what all compilers will release in the near future. Currently it's a little bit tedious creating a custom formatter, but I'm looking forward onto the std::format library. Beside that I also waiting for the source_location lib becoming available for the compilers.
​
Thanks for your attention, I really appreciate any feedback.
https://redd.it/lr26qm
@r_cpp
227
Making sure a string ends up in the executable.
Hi,
Maybe some remember adding rcs_id in the executable, so that you can run the string program on it and retrieve the version number of each source file.
I would like to do the same with a git describe string (except for the whole project, not for each file).
How would I make sure the string does not get optimised away? except for actually using the string.
https://redd.it/lqukvg
@r_cpp
227
GOTO Was a Terrible Disaster. Mutable State is The New GOTO.
https://suzdalnitski.medium.com/goto-destroys-lives-7636dd9201dd
https://redd.it/lqjg01
@r_cpp
227
The Pointer to Implementation (pImpl) idiom in C++
https://youtube.com/watch?v=lETcZQuKQBs&feature=share
https://redd.it/lqhb02
@r_cpp
227
A friendly guide to the syntax of C++ method pointers
https://opensource.com/article/21/2/ccc-method-pointers
https://redd.it/lqdixf
@r_cpp
227
Int Array Class Constructor
I am creating a simple int-array class. It holds a pointer to an int array and the length in the data, and when the user changes the array, it allocates a new memory block for it. However I am having a problem with the contructors: is there any way I can construct the class from an array initializer? I would expect the array initializer to work like a string literal and return a pointer to it, but it doesn't seem to work that way.
For example, what constructor argument list should I use for the following (lets say my class is called goodIntArray)
goodIntArray fibonacci = {1,1,2,3,5,8};
Please don't downvote, I'm just confused :(
https://redd.it/lq0dg0
@r_cpp
227
Best IDE and OS for C++?
Had to drop out of school to assist a dying family member and forgot everything about C++.
Got a book to relearn, but I'm wondering what IDE and OS you guys like?
https://redd.it/lpy2o7
@r_cpp
227
Trip report: Winter 2021 ISO C++ standards meeting (virtual)
https://herbsutter.com/2021/02/22/trip-report-winter-2021-iso-c-standards-meeting-virtual/
https://redd.it/lpzz5s
@r_cpp
227
Is Asio the best library for networking in C++?
So to provide context, I'm trying to learn more about sockets and networking in general with C++. The ultimate goal would be to create some kind of Windows-MacOS cross-platform file sharing application like AirDrop (is this even possible?). For now, I'm just trying to understand the basics. Is standalone Asio my best bet?
https://redd.it/lpy8m9
@r_cpp
227
Choosing Java instead of C++ for low-latency systems
https://stackoverflow.blog/2021/02/22/choosing-java-instead-of-c-for-low-latency-systems/
https://redd.it/lproni
@r_cpp
227
codebase redesign in C++ from C
If I have to redesign a moderate-level software module in C++11 from C, what advice or suggestion do you have w.r.t to C to C++ migration in general? I understand that without knowing the details of the module, it is hard to guess anything, you can assume that the C module is single threaded. It does usual memory allocation for the required data structures with legacy C API calls given by some other lower layer. Of course, I would look into the hidden design pattern opportunity in the existing code base and then implement them in modern C++.
Please also suggest some links or talks where people talk about software redesign from C to C++ in general. That would be of great help. Thank You.
https://redd.it/lps0x3
@r_cpp
227
A postmortem on a ray tracing book series; and a mini-guide on how to optimize your C++ programs
https://16bpp.net/blog/post/psraytracing-a-revisit-of-the-peter-shirley-minibooks-4-years-later/
https://redd.it/lppawp
@r_cpp
227
I want to use c++ as my main language and use html and css as my ui for a project.
How would I go about doing that? Anything would be helpful thanks.
https://redd.it/lpo2a8
@r_cpp
227
Implementing Parallel copy_If in C++
https://www.cppstories.com/2021/par-copyif/
https://redd.it/lpja9p
@r_cpp
227
Is it possible to compare types in C++?
I'm trying to make a meta-algorithm for determining which sort of algorithm to execute per instantiation of templates, I wonder if there is any way to do this in C++ something like
if(T == string){\\execute sorting for strings}? If not, is there any way to make meta-algorithms work per instantiation of types in a template?
https://redd.it/lpinf2
@r_cpp
اکنون در دسترس! پژوهش تلگرام ۲۰۲۵ — مهمترین بینشهای سال 
