2 // Copyright (c) 2016-2019 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 // This is a derivative work based on Zlib, copyright below:
12 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
14 This software is provided 'as-is', without any express or implied
15 warranty. In no event will the authors be held liable for any damages
16 arising from the use of this software.
18 Permission is granted to anyone to use this software for any purpose,
19 including commercial applications, and to alter it and redistribute it
20 freely, subject to the following restrictions:
22 1. The origin of this software must not be misrepresented; you must not
23 claim that you wrote the original software. If you use this software
24 in a product, an acknowledgment in the product documentation would be
25 appreciated but is not required.
26 2. Altered source versions must be plainly marked as such, and must not be
27 misrepresented as being the original software.
28 3. This notice may not be removed or altered from any source distribution.
30 Jean-loup Gailly Mark Adler
31 jloup@gzip.org madler@alumni.caltech.edu
33 The data format used by the zlib library is described by RFCs (Request for
34 Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
35 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
38 #ifndef BOOST_BEAST_ZLIB_IMPL_ERROR_HPP
39 #define BOOST_BEAST_ZLIB_IMPL_ERROR_HPP
44 struct is_error_code_enum<::boost::beast::zlib::error>
46 static bool const value = true;
57 make_error_code(error ev);