aboutsummaryrefslogtreecommitdiff
path: root/AGENTS/PITFALLS
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-24 18:09:43 +0000
committer_ov4 <ov4@ov4.org>2026-10-24 18:10:12 +0000
commitc63584c388ea6acb7ad2f244376ae005536b6838 (patch)
tree75913638e83925d5c4861fccddc47ce6e3dc5623 /AGENTS/PITFALLS
parent92dc80ad6616f1fef72cfef1ae120e4fb5b41146 (diff)
docs(overload): document return-type selection across keyword pages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS/PITFALLS')
-rw-r--r--AGENTS/PITFALLS/overload-template-operator.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/AGENTS/PITFALLS/overload-template-operator.md b/AGENTS/PITFALLS/overload-template-operator.md
index 5718b2d..f4a52ad 100644
--- a/AGENTS/PITFALLS/overload-template-operator.md
+++ b/AGENTS/PITFALLS/overload-template-operator.md
@@ -28,8 +28,8 @@ Part of the [pitfalls index](../PITFALLS.md).
Deduction recognizes T and array element T, never the T inside Box<T>.
- When multiple ordinary/template functions share a name, every definition must
specify OVERLOAD; exact ordinary definitions win, then non-variadic templates, then
- variadic templates, with same-tier ties ambiguous. Explicit arguments select
- templates only.
+ variadic templates, with same-tier ties ambiguous. An expected result type filters
+ ordinary definitions but not templates. Explicit arguments select templates only.
- Packs are final non-array parameters and expand only in call/constructor argument
lists; pack fields are rejected, including in variadic classes.
- Unsupported: non-type parameters, SIZEOF..., member/operator templates,