We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3325bbd commit 466e4ebCopy full SHA for 466e4eb
include/gsl/pointers
@@ -54,7 +54,7 @@ namespace details
54
// Copied from cppfront's implementation of the CppCoreGuidelines F.16 (https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-in)
55
template<typename T>
56
using value_or_reference_return_t = std::conditional_t<
57
- sizeof(T) < 2*sizeof(void*) && std::is_trivially_copy_constructible<T>::value,
+ sizeof(T) <= 2*sizeof(void*) && std::is_trivially_copy_constructible<T>::value,
58
const T,
59
const T&>;
60
0 commit comments