Skip to content

Commit 4143acb

Browse files
committed
Fix instantiations for AttributeWithShapeAndResource
1 parent 39af352 commit 4143acb

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/IO/ADIOS/ADIOS2PreloadAttributes.cpp

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -330,22 +330,13 @@ AttributeWithShapeAndResource<T>::operator bool() const
330330
}
331331

332332
#define OPENPMD_INSTANTIATE_GETATTRIBUTE(type) \
333+
template struct AttributeWithShape<type>; \
334+
template struct AttributeWithShapeAndResource<type>; \
333335
template AttributeWithShape<type> PreloadAdiosAttributes::getAttribute( \
334336
std::string const &name) const; \
335337
template auto AdiosAttributes::getAttribute( \
336338
size_t step, adios2::IO &IO, std::string const &name) const \
337-
-> AttributeWithShapeAndResource<type>; \
338-
template AttributeWithShapeAndResource< \
339-
type>::AttributeWithShapeAndResource(AttributeWithShape<type> parent); \
340-
template AttributeWithShapeAndResource<type>:: \
341-
AttributeWithShapeAndResource( \
342-
size_t len_in, \
343-
type const \
344-
*data_in, /* NOLINTNEXTLINE(bugprone-macro-parentheses) */ \
345-
std::optional<std::vector<type>> resource_in); \
346-
template AttributeWithShapeAndResource< \
347-
type>::AttributeWithShapeAndResource(adios2::Attribute<type> attr); \
348-
template AttributeWithShapeAndResource<type>::operator bool() const;
339+
-> AttributeWithShapeAndResource<type>;
349340
ADIOS2_FOREACH_TYPE_1ARG(OPENPMD_INSTANTIATE_GETATTRIBUTE)
350341
#undef OPENPMD_INSTANTIATE_GETATTRIBUTE
351342
} // namespace openPMD::detail

0 commit comments

Comments
 (0)