From a09b0954d4585358d6fcc76845c60d7554ceb304 Mon Sep 17 00:00:00 2001 From: James Sharpe Date: Mon, 19 Jul 2021 19:40:31 +0100 Subject: [PATCH] Add missing includes for std::runtime_error (#728) --- examples/cmake_synthetic/test_libb.cpp | 1 + examples/cmake_with_bazel_transitive/test_libb.cpp | 1 + examples/cmake_with_data/lib_a/src/lib_a.cpp | 1 + examples/cmake_with_data/tests/test_cmake_with_data.cpp | 1 + examples/cmake_with_data/tests/test_cmake_with_shared_lib.cpp | 1 + examples/cmake_working_dir/test_liba.cpp | 1 + examples/third_party/cares/c-ares-test.cpp | 1 + 7 files changed, 7 insertions(+) diff --git a/examples/cmake_synthetic/test_libb.cpp b/examples/cmake_synthetic/test_libb.cpp index 61b27952..405dd952 100644 --- a/examples/cmake_synthetic/test_libb.cpp +++ b/examples/cmake_synthetic/test_libb.cpp @@ -1,6 +1,7 @@ #include "libb.h" #include +#include #include int main(int argc, char* argv[]) diff --git a/examples/cmake_with_bazel_transitive/test_libb.cpp b/examples/cmake_with_bazel_transitive/test_libb.cpp index 61b27952..405dd952 100644 --- a/examples/cmake_with_bazel_transitive/test_libb.cpp +++ b/examples/cmake_with_bazel_transitive/test_libb.cpp @@ -1,6 +1,7 @@ #include "libb.h" #include +#include #include int main(int argc, char* argv[]) diff --git a/examples/cmake_with_data/lib_a/src/lib_a.cpp b/examples/cmake_with_data/lib_a/src/lib_a.cpp index dd027a76..2ab53b35 100644 --- a/examples/cmake_with_data/lib_a/src/lib_a.cpp +++ b/examples/cmake_with_data/lib_a/src/lib_a.cpp @@ -3,6 +3,7 @@ #include #include #include +#include std::string hello_data(std::string path) { diff --git a/examples/cmake_with_data/tests/test_cmake_with_data.cpp b/examples/cmake_with_data/tests/test_cmake_with_data.cpp index d83176b7..ac4febec 100644 --- a/examples/cmake_with_data/tests/test_cmake_with_data.cpp +++ b/examples/cmake_with_data/tests/test_cmake_with_data.cpp @@ -1,6 +1,7 @@ #include "lib_a.h" #include +#include #include int main(int argc, char* argv[]) diff --git a/examples/cmake_with_data/tests/test_cmake_with_shared_lib.cpp b/examples/cmake_with_data/tests/test_cmake_with_shared_lib.cpp index 8a85edf0..14792ece 100644 --- a/examples/cmake_with_data/tests/test_cmake_with_shared_lib.cpp +++ b/examples/cmake_with_data/tests/test_cmake_with_shared_lib.cpp @@ -1,5 +1,6 @@ #include #include +#include #include void test_opening_file(std::string path) diff --git a/examples/cmake_working_dir/test_liba.cpp b/examples/cmake_working_dir/test_liba.cpp index 1098b955..a3649b92 100644 --- a/examples/cmake_working_dir/test_liba.cpp +++ b/examples/cmake_working_dir/test_liba.cpp @@ -1,6 +1,7 @@ #include "liba.h" #include +#include #include int main(int argc, char* argv[]) diff --git a/examples/third_party/cares/c-ares-test.cpp b/examples/third_party/cares/c-ares-test.cpp index 0571d1dc..32ad10fd 100644 --- a/examples/third_party/cares/c-ares-test.cpp +++ b/examples/third_party/cares/c-ares-test.cpp @@ -1,6 +1,7 @@ #include "ares.h" #include +#include #include int main(int argc, char* argv[])