Skip to content

Commit

Permalink
Fixing swap()
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel AINS committed Jul 31, 2020
1 parent e7e53a3 commit 004ebf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spi/TimerBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void swap(NSSPI::TimerBuilder& first, NSSPI::TimerBuilder& second) { /* nothrow
#ifdef USE_RARITAN
/* We whould use swap() here to be exception safe but pp::Selector does not implement the swap() method */
/* Because we are dealing with references, there is no risk of exception during the following 3 lines, which is what we must ensure in this swap() method */
pp::Selector& tempFirst = temp.eventSelector;
pp::Selector& temp = first.eventSelector;
first.eventSelector = second.eventSelector;
second.eventSelector = temp;
#endif
Expand Down

0 comments on commit 004ebf6

Please sign in to comment.