Search code examples
What is the correct output of sizeof("string")?...


clanguage-lawyersizeofstring-literalsmikroc

Read More
Does an out-of-body definition for a member function of a class template have to be marked inline?...


c++templateslanguage-lawyerone-definition-rule

Read More
Can you use a braced-init-list as a (default) template argument?...


c++language-lawyerlist-initializationc++-templatesbraced-init-list

Read More
Can I write a function type that returns a function?...


c++language-lawyerc++14result-of

Read More
Where in the standard are functions returning functions disallowed?...


c++c++11syntaxlanguage-lawyer

Read More
Is void{} legal or not?...


c++language-lawyervoidc++17return-type-deduction

Read More
In what cases does the standard forbid taking pointers to functions/objects?...


c++pointerslanguage-lawyervoid-pointerspointer-conversion

Read More
Why is void() legal whereas void{} is not?...


c++language-lawyerc++20

Read More
Is `reinterpret_cast`ing between hardware SIMD vector pointer and the corresponding type an undefine...


c++x86language-lawyerundefined-behaviorintrinsics

Read More
extern const struct VS struct extern const...


c++visual-c++c++17language-lawyer

Read More
constexpr int* ptr =&i compiles in msvc but not with clang and gcc...


c++pointersreferencelanguage-lawyerconstexpr

Read More
Standard way of getting a bit pattern of all ones...


clanguage-lawyerbit-manipulationbit

Read More
Why doesn't the use of strictly conforming programs and conforming implementations ensure absolu...


clanguage-lawyerportabilityc11

Read More
Do we have a Strict Aliasing rule violation?...


c++language-lawyerstrict-aliasing

Read More
Does a restrict-qualified pointer parameter of a function allow optimization of the caller functions...


clanguage-lawyercompiler-optimizationrestrict-qualifier

Read More
Is the compiler allowed to optimize out heap memory allocations?...


c++gccclanglanguage-lawyercompiler-optimization

Read More
Msvc compiles &(Class::mem) but gcc does not...


c++visual-c++language-lawyercompiler-bug

Read More
The first snippet below compiles, but the second doesn't. Why?...


c++language-lawyerdeclarationname-lookupelaborated-type-specifier

Read More
Difference between forward declaration in argument vs "normal" forward declaration...


c++language-lawyerelaborated-type-specifier

Read More
What is the order of evaluation of assignment operators?...


clanguage-lawyerorder-of-execution

Read More
Is it possible to bind a class type object to a reference through a non-type template parameter in C...


c++language-lawyerc++20compiler-bugnon-type-template-parameter

Read More
Assigning to uninitialized memory in C++...


c++initializationlanguage-lawyernew-operator

Read More
What's the sense of a [Serialize] keyword?...


c#.netserializationtagslanguage-lawyer

Read More
Aliasing rules and making Rust function "generic over aliasing"...


rustlanguage-lawyerstrict-aliasing

Read More
Passing pointers to the same address as function arguments...


cpointerslanguage-lawyersequence-points

Read More
Does the C11 memory model really conflict with common optimizations?...


clanguage-lawyer

Read More
What's the difference between __PRETTY_FUNCTION__, __FUNCTION__, __func__?...


c++clanguage-lawyer

Read More
Why does exactly -LLONG_MIN lead to undefined behavior?...


clanguage-lawyerundefined-behaviorinteger-overflownegation

Read More
Why is std::array< T, 0 > not empty?...


c++c++11language-lawyerstdarray

Read More
Is std::basic_string a ReversibleContainer?...


c++language-lawyerstdstring

Read More
BackNext