Commit 5441bbe1 by Loo Rong Jie Committed by Derek Mauro

Fix code snippet in comment (#174)

parent 5aae0cff
...@@ -456,7 +456,7 @@ class LayoutImpl<std::tuple<Elements...>, absl::index_sequence<SizeSeq...>, ...@@ -456,7 +456,7 @@ class LayoutImpl<std::tuple<Elements...>, absl::index_sequence<SizeSeq...>,
// //
// // int[3], 4 bytes of padding, double[4]. // // int[3], 4 bytes of padding, double[4].
// Layout<int, double> x(3, 4); // Layout<int, double> x(3, 4);
// unsigned char* p = unsigned char[x.AllocSize()]; // unsigned char* p = new unsigned char[x.AllocSize()];
// int* ints = x.Pointer<0>(p); // int* ints = x.Pointer<0>(p);
// double* doubles = x.Pointer<1>(p); // double* doubles = x.Pointer<1>(p);
// //
......
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