Commit 54df5885 by Jonathan Wakely Committed by Jonathan Wakely

PR libstdc++/82917 add missing returns in <fstream>

	PR libstdc++/82917
	* include/std/fstream (basic_ifstream::open, basic_ofstream::open)
	(basic_fstream::open): Fix missing return.

From-SVN: r254638
parent 1bad9c18
2017-11-10 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/82917
* include/std/fstream (basic_ifstream::open, basic_ofstream::open)
(basic_fstream::open): Fix missing return.
2017-11-07 Jonathan Wakely <jwakely@redhat.com> 2017-11-07 Jonathan Wakely <jwakely@redhat.com>
* src/filesystem/ops-common.h (make_file_type) [S_ISSOCK]: Only use * src/filesystem/ops-common.h (make_file_type) [S_ISSOCK]: Only use
......
...@@ -663,7 +663,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -663,7 +663,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template<typename _Path> template<typename _Path>
auto auto
open(const _Path& __s, ios_base::openmode __mode = ios_base::in) open(const _Path& __s, ios_base::openmode __mode = ios_base::in)
-> decltype(_M_filebuf.open(__s, __mode)) -> decltype((void)_M_filebuf.open(__s, __mode))
{ open(__s.c_str(), __mode); } { open(__s.c_str(), __mode); }
#endif // C++17 #endif // C++17
#endif // C++11 #endif // C++11
...@@ -891,7 +891,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -891,7 +891,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template<typename _Path> template<typename _Path>
auto auto
open(const _Path& __s, ios_base::openmode __mode = ios_base::out) open(const _Path& __s, ios_base::openmode __mode = ios_base::out)
-> decltype(_M_filebuf.open(__s, __mode)) -> decltype((void)_M_filebuf.open(__s, __mode))
{ open(__s.c_str(), __mode); } { open(__s.c_str(), __mode); }
#endif // C++17 #endif // C++17
#endif // C++11 #endif // C++11
...@@ -1118,7 +1118,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -1118,7 +1118,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
auto auto
open(const _Path& __s, open(const _Path& __s,
ios_base::openmode __mode = ios_base::in | ios_base::out) ios_base::openmode __mode = ios_base::in | ios_base::out)
-> decltype(_M_filebuf.open(__s, __mode)) -> decltype((void)_M_filebuf.open(__s, __mode))
{ open(__s.c_str(), __mode); } { open(__s.c_str(), __mode); }
#endif // C++17 #endif // C++17
#endif // C++11 #endif // C++11
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment