Skip to main content
2 votes
3 answers
100 views

I want to pass a C-style array to a function taking a std::span, but overload resolution chooses to convert the array to bool instead. Is this behavior required by the standard, or is it a compiler ...
prl's user avatar
  • 12.5k
-8 votes
0 answers
62 views

I'm writing an application in C++ using libcurl, designed to handle multiple http requests simultaneously, so I'm using the libcurl multi interface. I'm using libcurl 8.17.0 on a Rocky 8 Linux machine ...
Eric Sokolowsky's user avatar
-4 votes
1 answer
78 views

Architecture: React/Ionic → BLE → ESP32 → UART → PIC16F (authoritative ACK) → UART → ESP32 → BLE → React/Ionic Problem: I currently use exponential backoff for most commands, which has been reliable ...
Anarchist Owl's user avatar
2 votes
2 answers
145 views

Is there a way to prevent implicit conversions happening in concepts? For example, this example compiles with GCC and clang when I actually want it to give an error that the char constructor is ...
Hello Worlder's user avatar
1 vote
2 answers
93 views

This code (reduced from the Chromium codebase) is accepted by Clang but rejected by GCC: template<class T> concept Concept = requires {typename T::marker;}; #define INJECT_MARKER using marker = ...
kinokijuf's user avatar
  • 994
0 votes
0 answers
94 views

I'm interested to understand more about performing file IO operations with systems programming languages in a way which does not use both a kernel space buffer and a user space buffer. Specifically I ...
user2138149's user avatar
  • 18.8k
2 votes
2 answers
79 views

Because of some FFI code interacting with C++ I need precise manual control on when the Drop::drop() method of types is called w.r.t. those of fields. To be more precise: When a C++ struct is ...
Nicola Gigante's user avatar
0 votes
1 answer
34 views

I have the following HDSentinel.cpp program designed to run under the GTK+ library environment. I had a simple Hello.cpp program that I tried to adapt so that the "Hello World" button would ...
Stephen Elliott's user avatar
1 vote
2 answers
107 views

I'm currently working on a project that requires a multi-threaded approach. This project is currently platform specific, i.e. Windows. This is how my read code looks like: #pragma once #include <...
neo's user avatar
  • 67
-4 votes
0 answers
37 views

I am just learning how to work with regular expressions in C++. I wrote a test program to see if a would match the string "abc", but the program outputted 0. Here's the code: #include <...
Last Name First Name's user avatar