Moved object destructor should not log
authorAravind Anbudurai <aru7@fb.com>
Sat, 2 Jul 2016 02:27:31 +0000 (19:27 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Sat, 2 Jul 2016 02:38:31 +0000 (19:38 -0700)
commit3df144bef3e58428d62402fe0b8a3d812e59f9a5
tree99147a034ed9410d1416b4a8ba27b5718f1d261e
parentdf7b6d2a825043fdd63214ea55db803df3826eed
Moved object destructor should not log

Summary:
I introduced a helper method to make an AutoTimer and forced default move-ctor.
That caused moved object's destruction to log and that is undesirable.
This defines a custom move-ctor to set a direct the moved object to not log.

Reviewed By: yfeldblum

Differential Revision: D3511206

fbshipit-source-id: 38ae6de5fe76077c5e5ed10f64ebe959f5674fa7
folly/experimental/AutoTimer.h
folly/experimental/test/AutoTimerTest.cpp