summaryrefslogtreecommitdiff
path: root/absl/container/internal
diff options
context:
space:
mode:
authorGravatar Evan Brown <ezb@google.com>2024-03-18 13:40:13 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2024-03-18 13:42:17 -0700
commitd53b1e6619e11ebb51e1a29d0847166685307be0 (patch)
treeff5b1b18424294bef850f635626cfdaa034aed0a /absl/container/internal
parentc1d4e4b98d655d01998dca77d27ad88e50de892f (diff)
Add template keyword to example comment for Layout::WithStaticSizes.
Without this keyword, we can sometimes get cryptic compilation failures such as "error: expected ';' after alias declaration". PiperOrigin-RevId: 616933517 Change-Id: I2209f3899a4ac03c031217cec67de25bd376d355
Diffstat (limited to 'absl/container/internal')
-rw-r--r--absl/container/internal/layout.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/container/internal/layout.h b/absl/container/internal/layout.h
index 72c14112..d42651a2 100644
--- a/absl/container/internal/layout.h
+++ b/absl/container/internal/layout.h
@@ -85,9 +85,9 @@
// generate optimal code. To help the compiler do that in more cases, you can
// specify the fixed sizes using `WithStaticSizes`. This ensures that all
// computations that can be performed at compile time are indeed performed at
-// compile time. E.g.:
+// compile time. Note that sometimes the `template` keyword is needed. E.g.:
//
-// using SL = L::WithStaticSizes<1, 1>;
+// using SL = L::template WithStaticSizes<1, 1>;
//
// void Use(unsigned char* p) {
// // First, extract N and M.