Fix compiling if not include size_t
This commit is contained in:
parent
9b91f54986
commit
1e7ae74d4e
2 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,6 @@
|
||||||
// Simple Example.
|
// Simple Example.
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <cstdint>
|
|
||||||
#include <nameof.hpp>
|
#include <nameof.hpp>
|
||||||
|
|
||||||
struct SomeStruct {
|
struct SomeStruct {
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include <cstddef>
|
||||||
|
|
||||||
inline constexpr const char* template_nameof_(const char* name, size_t length) {
|
inline constexpr const char* template_nameof_(const char* name, size_t length) {
|
||||||
return length == 0 ? name
|
return length == 0 ? name
|
||||||
|
|
Loading…
Reference in a new issue