Skip to content

Commit b451d3b

Browse files
soerengrunewaldalt-graph
authored andcommitted
SmallVector: Add missing include and std prefix
[Why] The compilation fails with: > In file included from doocs-clientlib/src/EqAdr.cc:29: > subprojects/gul17/include/gul17/SmallVector.h:277:22: error: 'uint32_t' does not name a type [-Wtemplate-body] > 277 | using SizeType = uint32_t; > | ^~~~~~~~ > subprojects/gul17/include/gul17/SmallVector.h:32:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' > ---8<--- Signed-off-by: Soeren Grunewald <soeren.grunewald@desy.de>
1 parent 08c21bb commit b451d3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/gul17/SmallVector.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
#include <algorithm>
2727
#include <array>
28+
#include <cstdint>
2829
#include <initializer_list>
2930
#include <iterator>
3031
#include <limits>
@@ -274,7 +275,7 @@ class SmallVector
274275
/// \copydoc ValueType
275276
using value_type = ValueType;
276277
/// Unsigned integer type for indexing, number of elements, capacity
277-
using SizeType = uint32_t;
278+
using SizeType = std::uint32_t;
278279
/// \copydoc SizeType
279280
using size_type = SizeType;
280281
/// Signed integer type for the difference of two iterators

0 commit comments

Comments
 (0)