lmi-commits
[Top][All Lists]
Advanced

[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()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]