Skip to content

Commit

Permalink
Remove aliasing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfgc authored and Godoy committed Aug 28, 2019
1 parent 5a28b82 commit 14b3516
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions bindings/CXX11/adios2/cxx11/Attribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

#include "Attribute.h"

#include <algorithm> // std::transform

#include "adios2/common/ADIOSMacros.h"
#include "adios2/core/Attribute.h"
#include "adios2/helper/adiosFunctions.h"
Expand Down Expand Up @@ -61,15 +59,7 @@ namespace adios2
} \
else \
{ \
\
std::vector<T> dataArray(m_Attribute->m_DataArray.size()); \
\
std::transform( \
dataArray.begin(), dataArray.end(), \
m_Attribute->m_DataArray.begin(), \
[](const IOType input) { return static_cast<T>(input); }); \
\
return dataArray; \
return helper::NewVectorType<IOType, T>(m_Attribute->m_DataArray); \
} \
} \
\
Expand Down

0 comments on commit 14b3516

Please sign in to comment.