2 // Copyright (c) 2015-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 // Official repository: https://github.com/boostorg/beast
10 #ifndef BOOST_BEAST_CORE_FILE_HPP
11 #define BOOST_BEAST_CORE_FILE_HPP
13 #include <boost/beast/core/detail/config.hpp>
14 #include <boost/beast/core/file_base.hpp>
15 #include <boost/beast/core/file_posix.hpp>
16 #include <boost/beast/core/file_stdio.hpp>
17 #include <boost/beast/core/file_win32.hpp>
18 #include <boost/config.hpp>
23 /** An implementation of File.
25 This alias is set to the best available implementation
26 of @b File given the platform and build settings.
28 #if BOOST_BEAST_DOXYGEN
29 struct file : file_stdio
33 #if BOOST_BEAST_USE_WIN32_FILE
34 using file = file_win32;
35 #elif BOOST_BEAST_USE_POSIX_FILE
36 using file = file_posix;
38 using file = file_stdio;