Commit 37291201 authored by Fabrice Fontaine's avatar Fabrice Fontaine

include/pistache/typeid.h: include cstddef

Include cstddef to avoid the following build failure with gcc 11:

In file included from /tmp/instance-3/output-1/build/pistache-f2f5a50f/src/../include/pistache/async.h:10,
                 from /tmp/instance-3/output-1/build/pistache-f2f5a50f/src/../include/pistache/client.h:9,
                 from /tmp/instance-3/output-1/build/pistache-f2f5a50f/src/client/client.cc:7:
/tmp/instance-3/output-1/build/pistache-f2f5a50f/src/../include/pistache/typeid.h:26:12: error: expected type-specifier before 'size_t'
   26 |   operator size_t() const { return reinterpret_cast<size_t>(id_); }
      |            ^~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/2443559df8c2357476e4cbdbebb08280cbb80a3bSigned-off-by: default avatarFabrice Fontaine <fontaine.fabrice@gmail.com>
parent 7f1e57ce
......@@ -7,6 +7,7 @@
#pragma once
#include <cstddef>
#include <functional>
namespace Pistache
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment