Skip to content

Commit f5eec04

Browse files
committed
Trivial fix for g++-5.1 C++11
1 parent 548ae00 commit f5eec04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Profiling_tools/include/CGAL/Memory_sizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ struct Memory_sizer
121121
size_type vsize = 0, rss = 0;
122122

123123
std::ifstream f("/proc/self/stat");
124-
CGAL_assertion(f);
124+
CGAL_assertion(!f.bad());
125125

126126
f >> pid >> name >> state >> ppid >> pgrp >> session >> tty >> tpgid >> flags;
127127
f >> minflt >> cminflt >> majflt >> cmajflt >> utime >> stime >> cutime;

0 commit comments

Comments
 (0)