Skip to content

Commit

Permalink
Merge pull request #280 from ecatmur/deprecated-copy
Browse files Browse the repository at this point in the history
Declare non-ODR-used copy constructor
  • Loading branch information
robertramey authored Aug 23, 2023
2 parents bb4d07e + 58d7229 commit 5e8c130
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/basic_oarchive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@ class basic_oarchive_impl {
return false;
return class_id < rhs.class_id;
}
aobject & operator=(const aobject & rhs)
{
address = rhs.address;
class_id = rhs.class_id;
object_id = rhs.object_id;
return *this;
}
aobject(
const void *a,
class_id_type class_id_,
Expand Down
3 changes: 3 additions & 0 deletions src/basic_xml_grammar.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ struct assign_impl<std::string> {
++b;
}
}
assign_impl(
const assign_impl<std::string> & rhs
);
assign_impl<std::string> & operator=(
assign_impl<std::string> & rhs
);
Expand Down

0 comments on commit 5e8c130

Please sign in to comment.