Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
1 replies
63 views

I have been using RustyPot from Python using the automatically generated Python bindings, but I'd really like to also use the High-Level API from C or C++. I'm completely unfamiliar with Rust ...
user1759557's user avatar
0 votes
0 answers
76 views

I have a complex C++ application (call it foo) that exposes an API that is wrapped for Python via Swig. This provides a 'statefull' library -- i.e. large amounts of complex data are kept on the C++ ...
Rob McDonald's user avatar
0 votes
1 answer
136 views

I have a method in a derived class which I want to call via a unique_ptr to the base class. How do I cast my unique_ptr to the base class to allow me to call the method in the derived class? In ...
NetHead's user avatar
  • 99
Advice
3 votes
2 replies
108 views

I want to create a panel (a top-level window) looking the same as backdrop-filter: blur(Npx); in CSS). The window should at least have rounded corners or be custom-shaped (ultimately). On top of the ...
Shtole's user avatar
  • 376
3 votes
1 answer
207 views

For some library functions, the C++ standard (conditionally) prescribes the strong exception guarantee in terms of “no effects”. This holds, for example, for std::vector::reserve [vector.capacity/4/4]:...
Daniel Langr's user avatar
  • 24.4k
1 vote
0 answers
74 views

I'm debugging a C++ dump in Visual Studio 2022. My symbol servers are defined. When I ask to load the symbols, I want Visual Studio to try to find the symbols in the locations I've provided, and in ...
Dominique's user avatar
  • 17.5k
-4 votes
0 answers
110 views

I'm trying to make a doubly linked hash table, sort of. At least, within each bucket it is doubly linked. My issue is when I am trying to assign the next/previous pointer to of the top of the bucket. ...
nagonn's user avatar
  • 1
Advice
0 votes
11 replies
127 views

Imagine I have a long string 10 kb characters, filled with random ASCII characters. And I want to lowercase them. One way i could do that is by using a simple operation like: inline char lowercase(...
revolutionary's user avatar
4 votes
2 answers
160 views

I am pretty sure the feature I am looking for doesn't exist in C++, but maybe there are smart alternatives that do something similar. In C++, we have Argument Dependent Lookup (ADL) feature, also ...
prapin's user avatar
  • 7,185
Advice
2 votes
7 replies
107 views

If I had multiple sockets to wait for information from, on a POSIX system I would use poll on multiple pollfd for POLLIN roughly as follows... struct pollfd pollFds[2] = {}; pollFd[0].fd = socket_0; ...
FLAK-ZOSO's user avatar
  • 4,183
9 votes
1 answer
495 views

I wrote the following program, which is accepted by clang and msvc, but is rejected by gcc. Demo template<typename... T> double BigFunction(double (*func)(const T...), double var) { return {}...
Richard's user avatar
  • 50.3k
4 votes
4 answers
295 views

I have a C++ function that looks something like this: double BigFunction(double (*func)(double), double var) { // calculations that only use "var" variable double var3 = func(var2); ...
Divyang Prajapati's user avatar
13 votes
1 answer
611 views

The following code produces a compilation error in g++-9: #include <ext/algorithm> #include <algorithm> #include <vector> int main() { std::vector<unsigned int> a[3], b[3];...
ruixiao liu's user avatar
-3 votes
0 answers
108 views

i'm wondering why issuing an EOF to stop the loop in run mode will result in the program terminated but in debug mode it will just exist the loop. I'm using Clion as my IDE (send EOF using shortkey in ...
tra minh chien's user avatar
-1 votes
0 answers
82 views

After upgrading Fedora 43 -> 44, I can't compile a C++ cmake project in Eclipse CDT. I am using these lines for downloading a file: try { ==> std::ostringstream result; curlpp::Cleanup ...
Ben Engbers's user avatar

15 30 50 per page
1
2 3 4 5
54314