We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a1decaa + 4f9efaa commit cfdeb32Copy full SHA for cfdeb32
utilities.html
@@ -455,12 +455,12 @@ <h1>Detection idiom</h1>
455
456
// <i>plausible implementation for the is_assignable type trait:</i>
457
template <class T>
458
- using is_copy_assignable = is_detected<T, copy_assign_t>;
+ using is_copy_assignable = is_detected<copy_assign_t, T>;
459
460
// <i>plausible implementation for an augmented is_assignable type trait</i>
461
// <i>that also checks the return type:</i>
462
463
- using is_canonical_copy_assignable = is_detected_exact<T&, T, copy_assign_t>;</code></pre>
+ using is_canonical_copy_assignable = is_detected_exact<T&, copy_assign_t, T>;</code></pre>
464
</cxx-example>
465
466
<cxx-example>
0 commit comments