[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>
- [lmi-commits] [lmi] master updated (722704f -> c99481b), Greg Chicares, 2020/04/03
- [lmi-commits] [lmi] master 87aad3c 1/6: Fix bourn_cast test compilation with clang, Greg Chicares, 2020/04/03
- [lmi-commits] [lmi] master fe2e852 2/6: Assume that all integer types use two's complement representation, Greg Chicares, 2020/04/03
- [lmi-commits] [lmi] master cc1abb5 4/6: Add missing stream headers,
Greg Chicares <=
- [lmi-commits] [lmi] master c99481b 6/6: Stop using std::bind{1st, 2nd}() removed from C++17, Greg Chicares, 2020/04/03
- [lmi-commits] [lmi] master ba745a4 3/6: Remove unused starts_with() function from PDF generation code, Greg Chicares, 2020/04/03
- [lmi-commits] [lmi] master a88f402 5/6: Disable clang -Wdeprecated-copy warning in regex_iterator, Greg Chicares, 2020/04/03