diff --git a/bindings/CXX11/adios2/cxx11/Attribute.cpp b/bindings/CXX11/adios2/cxx11/Attribute.cpp index 630f108a1a..10dba9dae0 100644 --- a/bindings/CXX11/adios2/cxx11/Attribute.cpp +++ b/bindings/CXX11/adios2/cxx11/Attribute.cpp @@ -10,8 +10,6 @@ #include "Attribute.h" -#include // std::transform - #include "adios2/common/ADIOSMacros.h" #include "adios2/core/Attribute.h" #include "adios2/helper/adiosFunctions.h" @@ -61,15 +59,7 @@ namespace adios2 } \ else \ { \ - \ - std::vector dataArray(m_Attribute->m_DataArray.size()); \ - \ - std::transform( \ - dataArray.begin(), dataArray.end(), \ - m_Attribute->m_DataArray.begin(), \ - [](const IOType input) { return static_cast(input); }); \ - \ - return dataArray; \ + return helper::NewVectorType(m_Attribute->m_DataArray); \ } \ } \ \