Commit d53b1e66 by Evan Brown Committed by Copybara-Service

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
parent c1d4e4b9
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment