#include <iostream> #include <cmath> using namespace std; #include <string> void func(std::string str) { } void my_func() { func(false); } int main(){ my_func(); return 0; }
Standard input is empty
Standard output is empty
terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct null not valid