Add missing includes for std::runtime_error (#728)

This commit is contained in:
James Sharpe 2021-07-19 19:40:31 +01:00 committed by GitHub
parent f9885a8066
commit a09b0954d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#include "libb.h" #include "libb.h"
#include <iostream> #include <iostream>
#include <stdexcept>
#include <string> #include <string>
int main(int argc, char* argv[]) int main(int argc, char* argv[])

View File

@ -1,6 +1,7 @@
#include "libb.h" #include "libb.h"
#include <iostream> #include <iostream>
#include <stdexcept>
#include <string> #include <string>
int main(int argc, char* argv[]) int main(int argc, char* argv[])

View File

@ -3,6 +3,7 @@
#include <cassert> #include <cassert>
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <stdexcept>
std::string hello_data(std::string path) std::string hello_data(std::string path)
{ {

View File

@ -1,6 +1,7 @@
#include "lib_a.h" #include "lib_a.h"
#include <iostream> #include <iostream>
#include <stdexcept>
#include <string> #include <string>
int main(int argc, char* argv[]) int main(int argc, char* argv[])

View File

@ -1,5 +1,6 @@
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <stdexcept>
#include <string> #include <string>
void test_opening_file(std::string path) void test_opening_file(std::string path)

View File

@ -1,6 +1,7 @@
#include "liba.h" #include "liba.h"
#include <iostream> #include <iostream>
#include <stdexcept>
#include <string> #include <string>
int main(int argc, char* argv[]) int main(int argc, char* argv[])

View File

@ -1,6 +1,7 @@
#include "ares.h" #include "ares.h"
#include <iostream> #include <iostream>
#include <stdexcept>
#include <string.h> #include <string.h>
int main(int argc, char* argv[]) int main(int argc, char* argv[])