Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in c++17

Why does std::find_if(first, last, p) not take predicate by reference?

Using enum instead of struct for tag dispatching in C++

c++ c++17 tag-dispatching

Rationale of restrictive rules for extract and re-insert with map

Passing std::filesystem::path to a function segfaults

Can I initialize an array using the std::initializer_list instead of brace-enclosed initializer?

Why is there no std::future::then in C++17?

[[maybe_unused]] on member variable, GCC warns (incorrectly?) that attribute is ignored

Why does auto seemingly deduce a reference when using structured bindings?

Why is std::variant unable to hold array object types while union can?

Can std::is_invocable be emulated within C++11?

c++ c++11 c++17

how to capture a parameter pack by forward or move?

c++ c++17

Why does std::condition_variable as a class member cause compile errors with std::thread?

Visual Studio 2017 can't find std::variant

How can I write a function template that returns either a reference or a value?

c++ templates c++17

Using fold expressions to print all variadic arguments with newlines inbetween

How to stream std::variant<...,...>

c++ stream c++17 variant

Structured binding on const

Why does if constexpr require an else to work?

Test if all elements are equal with C++17 fold-expression

In the expression left() = right(), why is right() sequenced first?