Skip to content

Commit

Permalink
Variant.hpp: size_t include
Browse files Browse the repository at this point in the history
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>
```
  • Loading branch information
ax3l committed May 13, 2021
1 parent 62977e0 commit 4af321b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/openPMD/auxiliary/Variant.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2017-2020 Fabian Koller
/* Copyright 2017-2021 Fabian Koller, Axel Huebl
*
* This file is part of openPMD-api.
*
Expand All @@ -22,6 +22,7 @@

#include "VariantSrc.hpp"

#include <cstddef>
#include <type_traits>


Expand Down

0 comments on commit 4af321b

Please sign in to comment.