IAP GITLAB

Skip to content
Snippets Groups Projects
Commit b77936e3 authored by Juan Ammerman's avatar Juan Ammerman Committed by Maximilian Reininghaus
Browse files

Change function swap in Stack.inl to avoid error.

parent 7e089c55
No related branches found
No related tags found
1 merge request!441Resolve "gcc12 does not compile boost 1.76.0"
...@@ -348,7 +348,7 @@ namespace corsika { ...@@ -348,7 +348,7 @@ namespace corsika {
inline void Stack<StackData, MParticleInterface, MSecondaryProducer>::swap( inline void Stack<StackData, MParticleInterface, MSecondaryProducer>::swap(
unsigned int const a, unsigned int const b) { unsigned int const a, unsigned int const b) {
data_.swap(a, b); data_.swap(a, b);
std::swap(deleted_[a], deleted_[b]); std::vector<bool>::swap(deleted_[a], deleted_[b]);
} }
template <typename StackData, template <typename> typename MParticleInterface, template <typename StackData, template <typename> typename MParticleInterface,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment