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...
[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 ...
[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...
[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...
[18 replies] Last: Just on the C++ language, IMO it does seem a pain that things take so ... (by TheIdeasMan)
  Archived months: [feb2025] [apr2025]

This is an archived page. To post a new message, go to the current page.