Search code examples
Modifying a global variable in a constexpr function in C++17...


c++language-lawyerc++17constexpr

Read More
Does the C++ standard forbid reusing storage without destroying?...


c++language-lawyerc++20c++23

Read More
Is it well defined to cast generic function pointers to specifc signatures with void* params pointin...


cgenericslanguage-lawyerfunction-pointers

Read More
Why is a double semicolon a SyntaxError in Python?...


pythonsyntax-errorlanguage-lawyer

Read More
Can atomic loads be merged in the C++ memory model?...


c++language-lawyercompiler-optimizationmemory-modelstdatomic

Read More
Which sort of UB do I have here, deleting array of operator new[]?...


c++arrayslanguage-lawyerplacement-new

Read More
Is shifting 0 to the left considered undefined behavior in C?...


clanguage-lawyerstandardsundefined-behavior

Read More
How to determine whether the following switch block is exhaustive?...


javalanguage-lawyer

Read More
Definite matching in Java pattern matching...


javalanguage-lawyer

Read More
Implicitly changing the active union member between two members of the same primitive type...


c++language-lawyerunions

Read More
C++ Aliasing a type with the same name...


c++language-lawyer

Read More
Does calling a dependent function that has not been yet declared at the point of template definition...


c++templateslanguage-lawyerdependent-type

Read More
Does C++11 allow dollar signs in identifiers?...


c++c++11language-lawyeridentifier

Read More
What are the prohibitions against certain kinds of aliasing through unions?...


clanguage-lawyerunionsstrict-aliasingtype-punning

Read More
Does calling non-const mem. fun. on const object via non-const ref obtained via const_cast invoke UB...


c++language-lawyerundefined-behaviorconst-cast

Read More
Common initial sequence with nested struct...


c++language-lawyer

Read More
Is there a way to assert something about an argument to a consteval function, with a meaningful erro...


c++language-lawyerc++20

Read More
C++14 constexpr function requirements on cppreference...


c++c++11language-lawyerc++14constexpr

Read More
Is there inlinable function for pow2?...


c++language-lawyerstd

Read More
Can & (address-of-operator) ever return nullptr?...


c++language-lawyer

Read More
C++17 Are non-static POD class members initialized with curly braces {} set to 0?...


c++c++17language-lawyerctor-initializervalue-initialization

Read More
Why can’t I use a unary operator in a chained assignment, but only in separate assignment statements...


javascriptlanguage-lawyeroperator-precedenceassignment-operator

Read More
Side effects and undefined behaviour when references are used in a function...


c++functionlanguage-lawyerexpressionside-effects

Read More
Changing active member in a union with copying using std::construct_at...


c++language-lawyerc++20unionconstexpr

Read More
Can std::ranges::enumerate enumerate any possible valid C++ array?...


c++language-lawyerc++20std-rangessize-t

Read More
Is definition of variable length array (VLA) / known constant size recursive?...


arrayscrecursionlanguage-lawyervariable-length-array

Read More
Why global-scope function declaration with built-in type arg must be visible before unqualified call...


c++language-lawyerc++20header-filesargument-dependent-lookup

Read More
UML CollaborationUse ownership...


language-lawyerumlocl

Read More
Can the order of declarations alter a program?...


c++language-lawyerrefactoring

Read More
Is using if (0) to skip a case in a switch supposed to work?...


c++cif-statementswitch-statementlanguage-lawyer

Read More
BackNext