buffer size check in ospanstream
Does ospanstream have any safety checks with respect to the output buffer size? or is it just expected to be a memory bug?
Why does a ‘deducing this’ template give different results than overloading by rvalue/lvalue?
I wrote this simple test to overload based on whether this
is an rvalue or an lvalue. The original version had additional cases, but I reduced it down to the one that’s puzzling me.
Why does a ‘deducing this’ template give different results than overloading by rvalue/lvalue?
I wrote this simple test to overload based on whether this
is an rvalue or an lvalue. The original version had additional cases, but I reduced it down to the one that’s puzzling me.
Why does a ‘deducing this’ template give different results than overloading by rvalue/lvalue?
I wrote this simple test to overload based on whether this
is an rvalue or an lvalue. The original version had additional cases, but I reduced it down to the one that’s puzzling me.
Why does a deducing this template give different results than overloading by rvalue lvalue?
I wrote this simple test to overload based on whether this
is an rvalue or an lvalue. The original version had addition cases, but I reduced it down the one that’s puzzling me.
Optimize std::vector comparison to memcmp
Consider the following code (https://godbolt.org/z/Tjf4csba4):
Optimize std::vector comparison to memcmp
Consider the following code (https://godbolt.org/z/Tjf4csba4):
Constexpr Vs. run-time: Different order of parameter evaluation of a function call in GCC
I realize that the order of parameter evaluation of a function call is not guaranteed to be one way or the other. But, is there a good reason that GCC has a different ordering when in a constexpr
context? The example below can be set to fail either at run-time or compile-time.
Error when trying to std::print an std::array: “‘parse’: is not a member of ‘std::formatter [etc]”
Using latest MSVC:
Behavior of C++ empty vs default constructors with all member fields having default values?
Similar to The new syntax “= default” in C++11