Beginners - March 2025

by Ch1156
Is my understanding of pointers correct?
So I've been studying pointers and really trying to learn how to use them and how they work, and I feel like I completely understand their use cases now. I...
Mar 26, 2025 at 2:18am
[19 replies] Last: I have just discovered that [ ] can be applied to type constructors ... (by TheIdeasMan)
Getter for enum member returns a copy of enum?
I came across something non-intuitive, found a solution, but don't fully understand why the solution works. #include <iostream> using namespace std; enum ...
Mar 19, 2025 at 2:32am
[11 replies] Last: My view with regard to interface and not needing setters and maybe nee... (by TheIdeasMan)
Using of voltile qualifier
Hi, Where should i use volatile keyword in cpp? I wrote a code in cpp which communicating with a memory mapped IO (MMIO) - specifically a IP core with base add...
Mar 1, 2025 at 6:06pm
[3 replies] Last: [quote=ElusiveTau]In multi-threaded applications, volatile can be used... (by Peter87)
by Ch1156
Using std::variant to reduce getter and setter clutter
I'm experimenting with new ways to reduce code bloat, and one of my biggest gripes is always having to create two different functions for one variable, so my so...
Mar 1, 2025 at 5:40am
[18 replies] Last: Just on the C++ language, IMO it does seem a pain that things take so ... (by TheIdeasMan)
  Archived months: [feb2025]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.