lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 9f59b63: Fix defect introduced 20180606T1653Z


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 9f59b63: Fix defect introduced 20180606T1653Z: missing standard header
Date: Wed, 29 Aug 2018 20:57:31 -0400 (EDT)

branch: master
commit 9f59b638d232b671da03c9539152173a6c87c305
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Fix defect introduced 20180606T1653Z: missing standard header
    
    An assertion that references CHAR_BIT had been moved from one file to
    another, but the required <climits> header was not moved at the same
    time.
    
    * actuarial_table.cpp: Removed no-longer-needed header.
    * main_common.hpp: Added now-required header.
---
 actuarial_table.cpp | 1 -
 main_common.hpp     | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/actuarial_table.cpp b/actuarial_table.cpp
index bdac70a..202e879 100644
--- a/actuarial_table.cpp
+++ b/actuarial_table.cpp
@@ -38,7 +38,6 @@
 
 #include <algorithm>                    // max(), min()
 #include <cctype>                       // toupper()
-#include <climits>                      // CHAR_BIT
 #include <cstdint>
 #include <ios>
 #include <istream>
diff --git a/main_common.hpp b/main_common.hpp
index 09697e6..19fd056 100644
--- a/main_common.hpp
+++ b/main_common.hpp
@@ -24,6 +24,7 @@
 
 #include "config.hpp"
 
+#include <climits>                      // CHAR_BIT
 #include <cstdint>
 #include <cstdlib>                      // EXIT_SUCCESS, EXIT_FAILURE
 



reply via email to

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