LINUX.ORG.RU

История изменений

Исправление af5, (текущая версия) :

-------------- Build: Debug in ppp12 (compiler: GNU GCC Compiler)---------------

g++ -I/usr/include/freetype2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -D_THREAD_SAFE -D_REENTRANT -std=c++14 -g -std=c++14  -c /home/username/codeblocks_proj/ppp12/Graph.cpp -o obj/Debug/Graph.o
/home/username/codeblocks_proj/ppp12/Graph.cpp: In function ‘bool Graph_lib::can_open(const string&)’:
/home/username/codeblocks_proj/ppp12/Graph.cpp:313:9: error: cannot convert ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘bool’ in return
  return ff;
         ^
Process terminated with status 1 (0 minute(s), 1 second(s))
1 error(s), 0 warning(s) (0 minute(s), 1 second(s))
 

Исправление af5, :

-------------- Build: Debug in ppp12 (compiler: GNU GCC Compiler)---------------

g++ -I/usr/include/freetype2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -D_THREAD_SAFE -D_REENTRANT -std=c++14 -g -std=c++14  -c /home/username/codeblocks_proj/ppp12/Graph.cpp -o obj/Debug/Graph.o
/home/username/codeblocks_proj/ppp12/Graph.cpp: In function ‘bool Graph_lib::can_open(const string&)’:
/home/username/codeblocks_proj/ppp12/Graph.cpp:313:9: error: cannot convert ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘bool’ in return
  return ff;
         ^
Process terminated with status 1 (0 minute(s), 1 second(s))
1 error(s), 0 warning(s) (0 minute(s), 1 second(s))
 

Исправление af5, :

-------------- Build: Debug in ppp12 (compiler: GNU GCC Compiler)---------------

g++ -I/usr/include/freetype2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -D_THREAD_SAFE -D_REENTRANT -std=c++14 -g -std=c++14  -c /home/a2/codeblocks_proj/ppp12/Graph.cpp -o obj/Debug/Graph.o
/home/username/codeblocks_proj/ppp12/Graph.cpp: In function ‘bool Graph_lib::can_open(const string&)’:
/home/username/codeblocks_proj/ppp12/Graph.cpp:313:9: error: cannot convert ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘bool’ in return
  return ff;
         ^
Process terminated with status 1 (0 minute(s), 1 second(s))
1 error(s), 0 warning(s) (0 minute(s), 1 second(s))
 

Исходная версия af5, :

-------------- Build: Debug in ppp12 (compiler: GNU GCC Compiler)---------------

g++ -I/usr/include/freetype2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -D_THREAD_SAFE -D_REENTRANT -std=c++14 -g -std=c++14  -c /home/a2/codeblocks_proj/ppp12/Graph.cpp -o obj/Debug/Graph.o
/home/a2/codeblocks_proj/ppp12/Graph.cpp: In function ‘bool Graph_lib::can_open(const string&)’:
/home/a2/codeblocks_proj/ppp12/Graph.cpp:313:9: error: cannot convert ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘bool’ in return
  return ff;
         ^
Process terminated with status 1 (0 minute(s), 1 second(s))
1 error(s), 0 warning(s) (0 minute(s), 1 second(s))