Skip to content

Commit

Permalink
IOSS: Add move constructor, operator=
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Oct 10, 2023
1 parent 8a1c680 commit f488668
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/seacas/libraries/ioss/src/Ioss_Field.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ namespace Ioss {

Field(const Ioss::Field &from) = default;
Field &operator=(const Field &from) = default;
Field(Ioss::Field &&from) = default;
Field &operator=(Field &&from) = default;
~Field() = default;

// Compare two fields (used for STL container)
Expand Down
6 changes: 4 additions & 2 deletions packages/seacas/libraries/ioss/src/Ioss_Property.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ namespace Ioss {
// To set implicit property
Property(const GroupingEntity *ge, std::string name, BasicType type);

Property(const Property &from) = default;
Property &operator=(Property &rhs);
Property(const Property &from) = default;
Property &operator=(const Property &rhs) = default;
Property(Property &&from) = default;
Property &operator=(Property &&rhs) = default;

~Property() = default;

Expand Down

0 comments on commit f488668

Please sign in to comment.