. Answers to this question are eligible for a +50 reputation bounty. Da ...
. Answers to this question are eligible for a +50 reputation bounty. Da ...
I need to interface with an API that expects compile time static strings. It enforces them via using To be more specific, I'm referring to the Appl ...
On Ubuntu 20.04 I need to use libc++ since the default libstdc++ is lacking required support. In order to not have to ship libc++ I need to statically ...
The C++20 standard states in [vector.overview]/4: An incomplete type T may be used when instantiating vector if the allocator meets the allocator ...
From man gcc: Here we see "when linking". Meaning that -nostdlib does not prevent GCC to generate calls to C standard library functions. Let's che ...
I have some problems when I try to run my main.cpp file, only with mac gcc/clang/g++ compiler. Here is the code: random.h random.cpp util.h ...
I have encountered a strange behaviour in clang (both AppleClang 1400.0.29.202 and clang 15.0.7 from Homebrew). Assume I have the following code: I ...
While building LLVM 15.0.4 I'm facing the following error: Here's the code I'm trying to compile. Here it gives invalid static_cast Rest of the ...
If I have a c program like this: node_s and list_s struct is defined and list_get_first is a function defined to get its first element data; Suppos ...
Building a Unity 2022.1 project for iOS I get the following error: This is weird because I have just updated XCode to 14.2 which apparently uses Cl ...
I've ran into some weird problem with clang. Yesterday I downloaded the precompiled binaries from the official clang/LLVM github repo - version 15.0.6 ...
First, I want to check all the c++ compilers I have installed on my mac. I most probably have Clang and GCC both. So now I want to delete GCC. please ...
This is my code snippet (the header file is trivial so not appear here). #include<string> #include<list> #include<optional> #includ ...
Anyone know why sudo cmake --build ./build-clang --config Release results in Despite the env variables being set? $CC --version trying to bui ...
I am compiling a simple "Hello world" program hw.cpp. It looks like this I am running on OS X. I compile with the following command: g++ hw.cp But ...
I started working on my first project using c++20 modules, and i chose LLVM Clang as toolset for building. Problem is that, when i try to include wind ...
I'm not expecting a solution to change the source. Make Clang parse the Source without modifying. TestClass.cpp Command to run Output Verbos ...
The line of code declines performance to 10x, I have checked ASM code, not result. Why this line of code declines performance to 10x? Here is the ...
A question for language lawyers: is my code ill-formed and happens to work on GCC, or on the contrary, is the CLANG incompatible with the standard? W ...
My issue is with how the move semantics is done in libc++'s implementation of std::function. I can't understand the logic behind the design choices th ...