Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in c++17

An 'if constexpr branch' does not get discarded inside lambda that is inside a template function

c++ c++17 if-constexpr

Is decltype(auto) for a structured binding supposed to be a reference?

Why doesn't a class having private constructor prevent inheriting from this class? How to control which classes can inherit from a certain base?

c++ c++11 inheritance c++17

Self-initialization of a static constexpr variable, is it well-formed?

Using std::variant with recursion, without using boost::recursive_wrapper

c++ boost c++17

What is the C++17 equivalent to boost::filesystem::unique_path()?

Can the "main" function be declared with the "noexcept" specifier?

Why is this overload of a conversion operator chosen?

Using std::visit on a class inheriting from std::variant - libstdc++ vs libc++

How do I check if an std::variant can hold a certain type

c++ c++17

Return Optional value with ?: operator

c++ optional c++17

Why does moving std::optional not reset state

c++ c++17 optional option-type

Do we need to use std::launder when doing pointer arithmetic within a standard-layout object (e.g., with offsetof)?

What is the purpose and usage of `memory_resource`?

c++ c++17 allocator

Using a filesystem::path, how do you open a file in a cross-platform way?

c++ c++17

Is void{} legal or not?

Class can't access its own private static constexpr method - Clang bug?

Why is there a dummy union member in some implementations of std::optional?

How to determine whether to use <filesystem> or <experimental/filesystem>?

c++ filesystems c++17

constexpr begin of a std::array

c++ c++17 constexpr