Skip to content

Commit

Permalink
Updated DataBlock / DataBlockGeneric to avoid shadowing of constructo…
Browse files Browse the repository at this point in the history
…r args
  • Loading branch information
oruebel committed Sep 22, 2024
1 parent cea343b commit 7c884d4
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/io/ReadIO.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ class DataBlockGeneric
/**
* \brief Parameterized constructor
*/
DataBlockGeneric(const std::any& data,
const std::vector<SizeType>& shape,
const std::type_index& typeIndex)
: data(data)
, shape(shape)
, typeIndex(typeIndex)
DataBlockGeneric(const std::any& inData,
const std::vector<SizeType>& inShape,
const std::type_index& inTypeIndex)
: data(inData)
, shape(inShape)
, typeIndex(inTypeIndex)
{
}
};
Expand Down Expand Up @@ -98,9 +98,10 @@ class DataBlock
/**
* Constructor
*/
DataBlock(const std::vector<DTYPE>& data, const std::vector<SizeType>& shape)
: data(data)
, shape(shape)
DataBlock(const std::vector<DTYPE>& inData,
const std::vector<SizeType>& inShape)
: data(inData)
, shape(inShape)
{
}

Expand Down

0 comments on commit 7c884d4

Please sign in to comment.