aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/util
diff options
context:
space:
mode:
authorGravatar Thiago Farina <tfarina@chromium.org>2015-05-07 11:30:29 +0000
committerGravatar Lukacs Berki <lberki@google.com>2015-05-07 14:05:44 +0000
commit1c5ba82efc1b1ca47f2123e3f1f894e539ee68f7 (patch)
treee9e7d12c0ca91ba4d5b36d5547148df0b3374aa6 /src/main/cpp/util
parent10bc12b19eed0b600d60ceda5e51ddffcc5c8c76 (diff)
Remove comment about a limitation that does not exist anymore.
Since we are now in C++11, this comment about C++03 and ARRAYSIZE() macro (which we don't even have) does not apply and thus we can just remove it. -- Change-Id: Id0c0c59eab5b90ff5f70d5078caa2c8e618d787a MOS_MIGRATED_REVID=93017596
Diffstat (limited to 'src/main/cpp/util')
-rw-r--r--src/main/cpp/util/port.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main/cpp/util/port.h b/src/main/cpp/util/port.h
index 1f64f052d0..b023771724 100644
--- a/src/main/cpp/util/port.h
+++ b/src/main/cpp/util/port.h
@@ -95,12 +95,6 @@ int sys_ioprio_set(int which, int who, int ioprio);
// The expression is a compile-time constant, and therefore can be
// used in defining new arrays, for example. If you use arraysize on
// a pointer by mistake, you will get a compile-time error.
-//
-// One caveat is that, for C++03, arraysize() doesn't accept any array of
-// an anonymous type or a type defined inside a function. In these rare
-// cases, you have to use the unsafe ARRAYSIZE() macro below. This is
-// due to a limitation in C++03's template system. The limitation has
-// been removed in C++11.
// This template function declaration is used in defining arraysize.
// Note that the function doesn't need an implementation, as we only