So basically I am writing a socket program in C++ on a Windows machine. But I am running a WSL and compile the code within the WSL because I am building it for
I am trying to find a way to send an unordered map from one node to another using MPI. The exact data structure I am trying to send is a nested unordered map (s
Essentially, the title of the post but to be more specific here's an overview of what happens. Every time I start my computer, after I log in a file that window
I just upgraded to wxWidgets 3.1.6 and it seems there are loads of fixes and upgrades. However, I ran into the problem of rather small font size for notebook pa
Assuming we have a sorted descending vector, like: vector<int> array {26, 21, 13, 11, 8, 3, 2}. I would like to inser
I am working on an cpp MQTT async_client utilizing the paho library. I am trying to fully understand the workings of the asynchronous client, but I am not sure
In templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway? I have the following code: t
I'm trying to setup my vscode to debug C++ programs using gdb from WSL. But I faced problem with gdb on my WSL 1 (Ubuntu 22.04 LTS). Whenever I try set a breakp
Overload resolution favours to consider {} as being of some fundamental type as opposed to some container. For example: #include <iostream&
According to the C++ FAQ, macros are evil: [9.5] Why should I use inline functions instead of plain old #define macros? Because #define macros are ev
According to the C++ FAQ, macros are evil: [9.5] Why should I use inline functions instead of plain old #define macros? Because #define macros are ev
I am currently unclear what constitutes the Factory Pattern in C++ given many implementations and examples in the wild. https://refactoring.guru/design-patterns
I'm study WPA. I wrote a simple program and used WPR to collect the etl. My program is very simple, just trying to covert string to int in a loop. #include <
I am getting confused of how to store the values assigned from 3 different functions and storing them in a single map variable QMap<QString,TrainInfo>*Tim
I have the following code #include <tuple> struct A{ int a; int b; }; std::tuple<A,bool> get(){ return {{}, true}; } With GCC 9.* an
I'm a bit stumped as to why this code has suddenly stopped compiling: https://godbolt.org/z/hhM5GG78x But if I change the compiler back v19.31, it will compile:
I've tried loading a local html file using webkit_web_view_load_uri() with a file:// URL. However, the webview would display a blank page. To circumvent this, I
When cross-compiling using clang and the -target option, targeting the same architecture and hardware as the native system, I've noticed that clang seems to gen
I have vector of doubles and I need to have pointer with access to each single byte (probably char *ptr). Can you tell me how to assign pointer to char to vecto
I wrote the following code for creating a chessboard using 2D Arrays in C++ : #include <iostream> #include <iomanip> #include <array> using na