Search code examples
What is a "span" and when should I use one?...


c++c++20c++-faqcpp-core-guidelinesstd-span

Read More
How do I follow "C.12 - Don’t make data members const or references in a copyable or movable ty...


c++constantscpp-core-guidelines

Read More
Why should I be careful in "noexcept-ing all the functions" just like I "const all th...


c++constantsconstexprnoexceptcpp-core-guidelines

Read More
Why hasn't not_null made it into the C++ standard yet?...


c++cpp-core-guidelines

Read More
Using CMake, how can we check if ".h" files are "self-contained" (as per guideli...


c++cmakecpp-core-guidelinesheader-only

Read More
Why does the C++ Core Guideline C.46 recommend explicit only for single-argument constructors?...


c++explicitcpp-core-guidelines

Read More
Should we still always std::forward a universal reference argument even if unnecessary?...


c++c++23perfect-forwardingclang-tidycpp-core-guidelines

Read More
cppcoreguidelines-virtual-class-destructor ... complains when Base has default protected destructor...


c++clang-tidycpp-core-guidelines

Read More
Why can't I construct a gsl::span with a brace-enclosed initializer list...


c++c++11cpp-core-guidelines

Read More
gsl::not_null<T*> vs. std::reference_wrapper<T> vs. T&...


c++pointerscpp-core-guidelinesguideline-support-library

Read More
Is Cpp Core Guidelines Rule F19 incomplete?...


c++c++20cpp-core-guidelines

Read More
How to use C++ Expects operator?...


c++c++17cpp-core-guidelines

Read More
Why does range-for decay this array into pointer according to clang-tidy?...


c++clang-tidycpp-core-guidelines

Read More
Why GitHub C++ Core Guideline says that global object better than singleton?...


c++singletoncpp-core-guidelinesglobal-object

Read More
How do I define __cpp_exceptions for gsl:narrow to compile?...


c++visual-studiomfcvisual-studio-2022cpp-core-guidelines

Read More
C++ Core Guidelines for static member variables...


c++static-membersclang-tidycpp-core-guidelines

Read More
Do not use array subscript when the index is not an integer constant expression; use gsl::at() inste...


c++cpp-core-guidelinesresharper-c++

Read More
Units for types in C++...


c++cpp-core-guidelines

Read More
Don't use static cast for arithmetic conversions (cpp-core-guidelines)...


c++cpp-core-guidelines

Read More
Is gsl::owner usable for shared-ownership?...


c++cpp-core-guidelinesguideline-support-library

Read More
Why do the C++ Core Guidelines not recommend to use std::optional over pointers when approriate?...


c++stdoptionalcpp-core-guidelines

Read More
How can I decay const char that is passed as reference to a function with variadic parameters?...


c++variadic-templatescpp-core-guidelines

Read More
When do I use "__attribute__((nonnull))" vs "not_null<T*>"?...


c++pointersnullattributescpp-core-guidelines

Read More
Is CppCoreGuidelines C.21 correct?...


c++c++11cpp-core-guidelinesrule-of-threerule-of-five

Read More
Using gsl::narrow fails...


visual-c++code-analysisreinterpret-castcpp-core-guidelines

Read More
CppCoreGuidlines R.33 Why pass `unique_ptr` by reference?...


c++c++11cpp-core-guidelines

Read More
How to use gsl narrow cast...


c++dllcpp-core-guidelines

Read More
Ensures() - guideline support library...


c++c++11cpp-core-guidelinesguideline-support-library

Read More
How to properly use "C++ Core Guidelines: C.146: Use dynamic_cast where class hierarchy navigat...


c++polymorphismdynamic-caststatic-polymorphismcpp-core-guidelines

Read More
Understanding gsl::narrow implementation...


c++c++11castingnarrowingcpp-core-guidelines

Read More
BackNext