[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] odd/zero_columns 29925fd 5/7: Explain a seeming anom
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] odd/zero_columns 29925fd 5/7: Explain a seeming anomaly |
Date: |
Mon, 6 May 2019 07:21:22 -0400 (EDT) |
branch: odd/zero_columns
commit 29925fd4b464da3019322964bc07277495f801e5
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Explain a seeming anomaly
---
wx_table_generator.cpp | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index ca292dd..af5158f 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -118,6 +118,15 @@ wx_table_generator::wx_table_generator
,2 * one_em_
,one_puncsp
);
+// When the cardinality of argument 'vc' is zero, argument 'indices'
+// has one element, because of table_mixin::create_table_generator():
+// // Add a one-past-the-end index equal to the last value, because
+// // some member functions of class wx_table_generator expect it.
+// indices.push_back(lmi::ssize(vc));
+// which explains the output
+// 0 vc.size()
+// 1 indices.size()
+// in this diagnostic block.
if(0 == lmi::ssize(all_columns_))
{
warning()
- [lmi-commits] [lmi] odd/zero_columns updated (f5a1790 -> e5b9a61), Greg Chicares, 2019/05/06
- [lmi-commits] [lmi] odd/zero_columns b503329 1/7: Remove lines that served only to locate failures, Greg Chicares, 2019/05/06
- [lmi-commits] [lmi] odd/zero_columns 8e2dd5d 2/7: Don't circumvent an assertion that does not fail, Greg Chicares, 2019/05/06
- [lmi-commits] [lmi] odd/zero_columns 7c26437 3/7: Rewrite a couple of lines for clarity, Greg Chicares, 2019/05/06
- [lmi-commits] [lmi] odd/zero_columns e5b9a61 7/7: Remove an unnecessary early-return statement, Greg Chicares, 2019/05/06
- [lmi-commits] [lmi] odd/zero_columns 29925fd 5/7: Explain a seeming anomaly,
Greg Chicares <=
- [lmi-commits] [lmi] odd/zero_columns 08a994b 6/7: Comment early-return statement that are not in master, Greg Chicares, 2019/05/06
- [lmi-commits] [lmi] odd/zero_columns ced5a90 4/7: Suppress a misleading error message when no columns are requested, Greg Chicares, 2019/05/06