Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in language-lawyer

Simple constexpr switch-case fails to compile on MSVC

Why does mandatory copy elision not apply to potentially-overlapping subobjects?

c++ language-lawyer

Can switch default statement be optimised out for enum

Is it safe to use `vec.push_back(vec.back());`? [duplicate]

Is it legal to static_assert that signed shift right has two's-complement behavior?

c++ c c++11 language-lawyer c11

Why does the std::sentinel_for concept require default constructability?

Resolving function overload in requires clause

Is it undefined behavior to pass a pointer to an unconstructed streambuf object to the ostream constructor?

Are variables formally a compile-time concept?

C++ name lookup --

c++ language-lawyer

I'm having some difficulty interpreting bullet point (5.2.1.1) in paragraph §8.5.3/5 of N4140

Gcc and clang reject move constructor with =default

c++ language-lawyer c++23

Template parameter deduction for constructors from initializer list

Can a user-defined deduction guide be constrained by a trailing requires-clause?

c++ language-lawyer c++20

std::unordered_set::equal_range iterator question

Is this C program with two struct definitions, involving a flexible array member, defined?

Function declaration must be available as none of the arguments depend on a template parameter

When is it necessary or meaningful to write &f for a function f or *fp for a function pointer fp (except in: sizeof &f)?