diff options
| author | William A. Kennington III <wak@google.com> | 2018-10-29 20:04:39 -0700 |
|---|---|---|
| committer | William A. Kennington III <wak@google.com> | 2018-10-29 20:42:19 -0700 |
| commit | 463d5c347819b0d750c1ccaac7aac20c32035df9 (patch) | |
| tree | dcf566acd5fc4bd94371f9d07470f3ceaf8b546f | |
| parent | 27b7301a3a18f5b8a77363f0f087d0cff960e9ff (diff) | |
| download | sdeventplus-463d5c347819b0d750c1ccaac7aac20c32035df9.tar.gz sdeventplus-463d5c347819b0d750c1ccaac7aac20c32035df9.zip | |
clock: Make it possible to move assign
When the internal Event is const, it makes it impossible to generate the
implicit move constructors since moving an Event is non-const.
Tested:
Object is now movable by containers. This was verified by using a
future commit that requires movability of timers.
Change-Id: Id9859806899443e3daf425dacd4bd23fe9a52f58
Signed-off-by: William A. Kennington III <wak@google.com>
| -rw-r--r-- | src/sdeventplus/clock.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sdeventplus/clock.hpp b/src/sdeventplus/clock.hpp index b3a7ea9..8af9143 100644 --- a/src/sdeventplus/clock.hpp +++ b/src/sdeventplus/clock.hpp @@ -52,7 +52,7 @@ class Clock time_point now() const; private: - const Event event; + Event event; }; } // namespace sdeventplus |

