Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in language-lawyer

Clang and GCC disagree on whether overloaded function templates are ambiguous

c++ c++11 language-lawyer

Are int main() and int main(void) equivalent prototypes in C23?

Pointer arithmetic across subobject boundaries

Can I "over-extend" an array by allocating more space to the enclosing struct?

constexpr general confusion

void* ptr = &func; compiles with msvc without any diagnostic but both gcc and clang rejects it

`std::is_same_v<size_t, uint64_t>` evaluates to `false` when both types are 8 bytes long

What is the purpose of the new C23 #embed directive?

c language-lawyer c23

Are floatN_t in stdfloat guarenteed to be IEEE compliant?

What happens when an assumption, i.e. [[assume]] contains UB?

Why does constinit allow UB?

Is enum { a } e = 1; valid?

c enums language-lawyer

Going from signed integers to unsigned integers and vice versa in C++20

Is the conditional move optimization against the C standard?

C++ idempotence of going through: pointer → reference → pointer

Class that holds a reference to itself

c++ language-lawyer

Does C++ standard guarantee the initialization of padding bytes to zero for non-static aggregate objects?

Can we distinguish the results of diamond operator from raw constructor?

Alternative for-loop construct