Skip to content

Disable move and copy semantic for the counters

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