Fix FILE namespace qualification

fixes #1944
This commit is contained in:
Edward Diener
2020-04-03 08:37:30 -04:00
committed by Richard Hodges
parent 1054661723
commit 871e439ac1
2 changed files with 5 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
* Fix FILE namespace qualification
* Fix http read bytes_transferred (API Change) * Fix http read bytes_transferred (API Change)
API Changes: API Changes:

View File

@@ -26,14 +26,14 @@ namespace beast {
*/ */
class file_stdio class file_stdio
{ {
FILE* f_ = nullptr; std::FILE* f_ = nullptr;
public: public:
/** The type of the underlying file handle. /** The type of the underlying file handle.
This is platform-specific. This is platform-specific.
*/ */
using native_handle_type = FILE*; using native_handle_type = std::FILE*;
/** Destructor /** Destructor
@@ -63,7 +63,7 @@ public:
file_stdio& operator=(file_stdio&& other); file_stdio& operator=(file_stdio&& other);
/// Returns the native handle associated with the file. /// Returns the native handle associated with the file.
FILE* std::FILE*
native_handle() const native_handle() const
{ {
return f_; return f_;
@@ -77,7 +77,7 @@ public:
*/ */
BOOST_BEAST_DECL BOOST_BEAST_DECL
void void
native_handle(FILE* f); native_handle(std::FILE* f);
/// Returns `true` if the file is open /// Returns `true` if the file is open
bool bool