diff --git a/source/adios2/helper/adiosType.h b/source/adios2/helper/adiosType.h index 24f360d524..319c1a1d0f 100644 --- a/source/adios2/helper/adiosType.h +++ b/source/adios2/helper/adiosType.h @@ -177,6 +177,16 @@ class DimsArray : public CoreDims { std::copy(d1.begin(), d1.end(), &Dimensions[0]); } + + DimsArray(const DimsArray &d1) : CoreDims(d1.size(), &Dimensions[0]) + { + std::copy(d1.begin(), d1.end(), &Dimensions[0]); + } + + DimsArray(const size_t count, const DimsArray &d1) : CoreDims(count, &Dimensions[0]) + { + std::copy(d1.begin(), d1.end(), &Dimensions[0]); + } }; /**