File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 93
93
# pragma warning(pop)
94
94
#endif
95
95
96
+ #include < cstddef>
96
97
#include < forward_list>
97
98
#include < vector>
98
99
#include < string>
@@ -182,7 +183,8 @@ extern "C" {
182
183
183
184
NAMESPACE_BEGIN(pybind11)
184
185
185
- typedef Py_ssize_t ssize_t;
186
+ using ssize_t = Py_ssize_t;
187
+ using size_t = std::size_t ;
186
188
187
189
// / Approach used to cast a previously unknown C++ instance into a Python object
188
190
enum class return_value_policy : uint8_t {
@@ -320,7 +322,7 @@ template <typename type, typename holder_type = std::unique_ptr<type>> struct in
320
322
};
321
323
322
324
struct overload_hash {
323
- inline std:: size_t operator ()(const std::pair<const PyObject *, const char *>& v) const {
325
+ inline size_t operator ()(const std::pair<const PyObject *, const char *>& v) const {
324
326
size_t value = std::hash<const void *>()(v.first );
325
327
value ^= std::hash<const void *>()(v.second ) + 0x9e3779b9 + (value<<6 ) + (value>>2 );
326
328
return value;
You can’t perform that action at this time.
0 commit comments