]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/beast/zlib/impl/error.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / beast / zlib / impl / error.hpp
1 //
2 // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
3 //
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)
6 //
7 // Official repository: https://github.com/boostorg/beast
8 //
9
10 // This is a derivative work based on Zlib, copyright below:
11 /*
12 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
13
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.
17
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:
21
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.
29
30 Jean-loup Gailly Mark Adler
31 jloup@gzip.org madler@alumni.caltech.edu
32
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).
36 */
37
38 #ifndef BOOST_BEAST_ZLIB_IMPL_ERROR_HPP
39 #define BOOST_BEAST_ZLIB_IMPL_ERROR_HPP
40
41 namespace boost {
42 namespace system {
43 template<>
44 struct is_error_code_enum<::boost::beast::zlib::error>
45 {
46 static bool const value = true;
47 };
48 } // system
49 } // boost
50
51 namespace boost {
52 namespace beast {
53 namespace zlib {
54
55 BOOST_BEAST_DECL
56 error_code
57 make_error_code(error ev);
58
59 } // zlib
60 } // beast
61 } // boost
62
63 #endif