ci: bsds: rebuild packages after reconfiguration
[m6w6/libmemcached] / include / libmemcachedutil-1.0 / ostream.hpp
1 /*
2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
14 */
15
16 #pragma once
17
18 static inline std::ostream &operator<<(std::ostream &output, const enum memcached_return_t &arg) {
19 output << memcached_strerror(NULL, arg);
20 return output;
21 }
22
23 static inline std::ostream &operator<<(std::ostream &output, const memcached_st &arg) {
24 output << " query_id: " << memcached_query_id(&arg);
25 output << " error: " << memcached_last_error_message(&arg);
26 return output;
27 }