Fix the copy constructor in Replaceable
authorPhil Willoughby <philwill@fb.com>
Sat, 29 Jul 2017 07:08:27 +0000 (00:08 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 29 Jul 2017 07:09:07 +0000 (00:09 -0700)
commitefc4ca1ecfa090028b6260f7d77373ebd0aa8b45
treeced129a1b06d9d4bc6944a2769f36b209433d264
parent890625b2c781b779f65a835e7c7c610c95f010c0
Fix the copy constructor in Replaceable

Summary:
Fix the copy constructor, and add the missing testcase which would have found
this problem.

Reviewed By: yfeldblum

Differential Revision: D5516628

fbshipit-source-id: 3e688c34f061511df5b68243111fecb83483d79d
folly/Replaceable.h
folly/test/ReplaceableTest.cpp