Skip to content

Commit 4af321b

Browse files
committed
Variant.hpp: size_t include
Fix the following error on macOS: ``` In file included from openPMD-api/include/openPMD/Iteration.hpp:24, from openPMD-api/src/Iteration.cpp:21: openPMD-api/include/openPMD/auxiliary/Variant.hpp:81:15: error: 'size_t' does not name a type 81 | constexpr size_t index() const noexcept | ^~~~~~ openPMD-api/include/openPMD/auxiliary/Variant.hpp:1:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'? +++ |+#include <cstddef> ```
1 parent 62977e0 commit 4af321b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/openPMD/auxiliary/Variant.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2017-2020 Fabian Koller
1+
/* Copyright 2017-2021 Fabian Koller, Axel Huebl
22
*
33
* This file is part of openPMD-api.
44
*
@@ -22,6 +22,7 @@
2222

2323
#include "VariantSrc.hpp"
2424

25+
#include <cstddef>
2526
#include <type_traits>
2627

2728

0 commit comments

Comments
 (0)