lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master cc1abb5 4/6: Add missing stream headers


From: Greg Chicares
Subject: [lmi-commits] [lmi] master cc1abb5 4/6: Add missing stream headers
Date: Fri, 3 Apr 2020 18:51:39 -0400 (EDT)

branch: master
commit cc1abb51b25ca5953839f12ff40e270cfc8cd49c
Author: Vadim Zeitlin <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Add missing stream headers
    
    std::[io]stream can't be used without being fully defined first, so
    include the corresponding header from the files using them.
    
    Lack of these headers went unnoticed so far, probably because the other
    standard library implementations indirectly included these headers from
    one of the other headers already included by these files, but not doing
    this resulted in compilation errors when using clang 10 with its libc++.
---
 ce_product_name.cpp | 1 +
 rate_table.hpp      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/ce_product_name.cpp b/ce_product_name.cpp
index 27d1e06..019a378 100644
--- a/ce_product_name.cpp
+++ b/ce_product_name.cpp
@@ -36,6 +36,7 @@
 #include <boost/filesystem/path.hpp>
 
 #include <algorithm>                    // find()
+#include <istream>
 
 namespace
 {
diff --git a/rate_table.hpp b/rate_table.hpp
index 914d064..a90d18f 100644
--- a/rate_table.hpp
+++ b/rate_table.hpp
@@ -30,6 +30,7 @@
 #include <cstdint>
 #include <iosfwd>
 #include <memory>                       // shared_ptr
+#include <ostream>
 #include <string>
 #include <vector>
 



reply via email to

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