Skip to content

Commit

Permalink
Fix issue with JobGenealogist and serialization. (RosettaCommons#64)
Browse files Browse the repository at this point in the history
An attempt at modernizing the serialization method for protocols::jd3::compare_job_nodes accidentally made things be called in an infinite loop. This is breaking the GCC 12 serialization build.

The fix is easy -- there's now no data to serialize, so we can simply replace the functions with empty ones.
  • Loading branch information
roccomoretti authored Jun 5, 2024
1 parent 7e25e4a commit 054fbb5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/src/protocols/jd3/JobGenealogist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -647,15 +647,15 @@ CEREAL_REGISTER_TYPE( protocols::jd3::JobGenealogist )
/// @brief Automatically generated serialization method
template< class Archive >
void
protocols::jd3::compare_job_nodes::save( Archive & arc ) const {
arc( cereal::base_class< compare_job_nodes >( this ) );
protocols::jd3::compare_job_nodes::save( Archive & ) const {
// No data currently, so this is a no-op.
}

/// @brief Automatically generated deserialization method
template< class Archive >
void
protocols::jd3::compare_job_nodes::load( Archive & arc ) {
arc( cereal::base_class< compare_job_nodes >( this ) );
protocols::jd3::compare_job_nodes::load( Archive & ) {
// No data currently, so this is a no-op.
}

SAVE_AND_LOAD_SERIALIZABLE( protocols::jd3::compare_job_nodes );
Expand Down

0 comments on commit 054fbb5

Please sign in to comment.