Skip to main content
New: Stack Overflow For Agents. The next generation of knowledge exchange. Learn more
Filter by
Sorted by
Tagged with
-3 votes
2 answers
162 views

english is not my native language i tried using translators but nothing works i am trying to understand this from cppreference (deprecated) Namespace scope declaration of a static data member that was ...
Spook's user avatar
2 votes
2 answers
140 views

I'm using R version 4.6.0 and want to install the deprecated package ggvoroni which needs the deprecated package rgeos. When I run remotes::install_version("rgeos", version = "0.6-4&...
David's user avatar
0 votes
0 answers
67 views

I have an avx2 implementation of cryptographic hash LSH512-512 with context implementation: typedef struct st_lsh512_avx2_context { size_t bidx; size_t length; alignas(32) simde__m256i ...
Brain_driver_not_found's user avatar
6 votes
2 answers
260 views

I was watching this video What Is an ABI, and Why Should You Care? by Shung-Hsi Yu, SUSE and in the first few minutes they showed the following code and compiled it as follows: geo.h: struct point { ...
KeshawT's user avatar
Advice
3 votes
12 replies
222 views

std::stop_source::request_stop is a non-const method according to cppreference. It is a const method, however, on GCC 13 (and possibly other versions, see gcc.gnu.org/onlinedocs). That's why Clang-...
Jens's user avatar
2 votes
0 answers
144 views

I've got a problem in which I create a macros for portable AES intrinsics and utilize AVX512 if the target architecture supports it. The snippet: #if defined __VAES__ // required AVX512-VAES, not used ...
Brain_driver_not_found's user avatar
0 votes
1 answer
135 views

I know that I can get the preprocessed file. I also know that I can get the assembly file. Is there a way to get an intermediate file that is after consteval, reflection, and the like have been ...
Graznarak's user avatar
Advice
1 vote
2 replies
121 views

I was messing with some stuff in C and was surprised to discover that the following: #include <stdio.h> #include <dlfcn.h> int main(void) { void *handle = dlsym(RTLD_NEXT, &...
Admineral's user avatar
3 votes
2 answers
142 views

I have been using Apple SIMD which appears to be implemented using the GCC/Clang vector extensions. Although the C standard forbids most pointer type-punning due to strict aliasing, I am asking about ...
CPlus's user avatar
6 votes
1 answer
194 views

My project makes use of a macro (together with doc comments) to express function pre/post contracts. The macro is intentionally such that if NDEBUG is defined, it expands essentially to [[assume(expr)]...
starball's user avatar
3 votes
0 answers
106 views

I have been trying to use modules and reflection in a personal project. I am compiling using GCC16.1.1. I have encountered a case that is fails to compile. Below are the commands to compile, the ...
Graznarak's user avatar
Best practices
0 votes
0 replies
34 views

GCC, when linking LTO objects, will run a bunch of subprocesses in parallel. It uses Make to coordinate that, in the hope that if there is a jobserver present (i.e. gcc itself has been called from ...
Simon Richter's user avatar
4 votes
1 answer
183 views

I am trying the new C++26 type reflection features in gcc 16.1, and I have this basic code for converting a struct/class to JSON (see at the end). My code: #include <meta> #include <string>...
Man In. Jail's user avatar
2 votes
1 answer
204 views

To my understanding, since a for loop is used to define runtime control flow, element_declaration (e in the example below) shouldn't be considered a constant expression (even though it copies ...
user32744437's user avatar
1 vote
1 answer
94 views

Alledgedly this was the default behaviour for sufficiently old gcc versions. Unfortunately, gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 (and according to another comment already gcc 7.3.0) have ...
Zsar's user avatar

15 30 50 per page
1
2 3 4 5
2820