From 14b35166d1883bfb0f07b2ac408bfa90df359e07 Mon Sep 17 00:00:00 2001 From: William F Godoy Date: Tue, 23 Jul 2019 17:07:17 -0400 Subject: [PATCH] Remove aliasing warning --- bindings/CXX11/adios2/cxx11/Attribute.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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); \ } \ } \ \