There's a generic partial specialization for all std::vector<T> that
does what's desired, so no need for this full specialization that's
causing an ODR violation anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318712
91177308-0d34-0410-b5e6-
96231b3b80d8
static constexpr bool flow = true;
};
-template <> struct SequenceTraits<std::vector<uint64_t>> {
- static constexpr bool flow = true;
- static size_t size(IO &IO, std::vector<uint64_t> &V) { return V.size(); }
- static uint64_t &element(IO &IO, std::vector<uint64_t> &V, size_t Index) {
- if (Index >= V.size())
- V.resize(Index + 1);
- return V[Index];
- }
-};
-
template <> struct MappingTraits<xray::YAMLXRayTrace> {
static void mapping(IO &IO, xray::YAMLXRayTrace &Trace) {
// A trace file contains two parts, the header and the list of all the