File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ ITimer::~ITimer() {
6262 try {
6363 stop ();
6464 } catch (const std::exception &e) {
65- std::cerr << " Exception in destructor (" << __PRETTY_FUNCTION__ << " ): " << e.what () << std::endl ;
65+ std::cerr << " Exception in destructor (" << __PRETTY_FUNCTION__ << " ): " << e.what () << ' \n ' ;
6666 exit (EX_SOFTWARE);
6767 }
6868 }
Original file line number Diff line number Diff line change 1212#include < thread>
1313
1414static int x = 0 ;
15- static void handler (int ) { ++x; }
15+ static void handler (int ) {
16+ ++x;
17+ }
1618
1719int main () {
1820 struct sigaction sa {};
@@ -37,7 +39,7 @@ int main() {
3739
3840 std::this_thread::sleep_for (std::chrono::seconds (10 ));
3941 if (x != 5 ) {
40- std::cerr << " Assertion x == 5 failed " << __FILE__ << " :" << __LINE__ << std::endl ;
42+ std::cerr << " Assertion x == 5 failed " << __FILE__ << " :" << __LINE__ << ' \n ' ;
4143 return EXIT_FAILURE;
4244 }
4345}
You can’t perform that action at this time.
0 commit comments