Skip to content

Commit

Permalink
Merge pull request #32768 from vespa-engine/toregge/include-type-trai…
Browse files Browse the repository at this point in the history
…ts-to-get-declaration-of-std-is-trivial-v

Include type_traits to get declaration of std::is_trivial_v.
  • Loading branch information
geirst authored Nov 4, 2024
2 parents d096676 + 7afae74 commit 7cde2b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vespalib/src/vespa/vespalib/util/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

#pragma once

#include <memory>
#include <cstring>
#include <cstdlib>
#include <cstring>
#include <memory>
#include <type_traits>

/// Macro to give you number of elements in a defined array.
#define VESPA_NELEMS(a) (sizeof(a)/sizeof(a[0]))
Expand Down

0 comments on commit 7cde2b9

Please sign in to comment.