Skip to content
Snippets Groups Projects

Disable move and copy semantic for the counters

Merged Sebastien Ponce requested to merge sponce_countersNoMove into master

As they auto register to the Hub, move/copy semantic is dangerous in that it can invalidate the pointers kept in the Hub.

There are mainly 2 consequences for users of Counters :

  • postfix operator ++ is gone for standard counters. One should use the prefix one
  • vectors of Counters are no more available. But deque can be used instead

Note that this requires adaptation to the client code, so cannot be merged before this adaptations are merged

Edited by Sebastien Ponce

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading