Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in language-lawyer

Returning local unique_ptr as a shared_ptr

Is there a (semantic) difference between the return value of placement new and the casted value of its operand?

"constructing" a trivially-copyable object with memcpy

How can I include a header file that contains `>` in its name?

Is it legal to modify an object created with new through a const pointer?

Standard behavior for direct initialization of unsigned short

Union with anonymous struct with flexible array member

c struct language-lawyer union

Are non dereferenced iterators past the "one past-the-end" iterator of an array undefined behavior?

Is this[0] safe in C++?

Should I use "&&" or "and"? [closed]

Since a string literal is considered an lvalue, why must the binding lvalue reference be const?

Does "int (*)[]" decay into "int **" in a function parameter?

reinterpret_cast bug or UB? [duplicate]

Why it is legal here to create lvalue reference to prvalue?

c++ c++11 language-lawyer

Proving that "int *p = malloc(1); p[0]" is undefined behavior

c malloc language-lawyer

Can the following code be true for pointers to different things

c pointers language-lawyer

Order of evaluation of arguments using std::cout

Why c++ does not support multiple initializers in for loop? [duplicate]

Can a variable be redeclared as auto that deduced to the same type? [duplicate]

How to interpret the reachability requirement of std::launder?