folly::Function: fix swap function and put in correct namespace
authorSven Over <over@fb.com>
Sat, 2 Apr 2016 00:55:57 +0000 (17:55 -0700)
committerFacebook Github Bot 1 <facebook-github-bot-1-bot@fb.com>
Sat, 2 Apr 2016 01:05:24 +0000 (18:05 -0700)
commit12d273d287dfc60999c331868092c45718448e1b
tree450f0fc97fafa04dcdecad5ad919e5f6e4ab54c9
parent4e995b4d28266a824eec20457a927bc14afb77d1
folly::Function: fix swap function and put in correct namespace

Summary:The swap function belongs in the same namespace as Function: folly.
Also, to avoid amibiguities with a generic swap function in
<algorithm>, we need two variants: one for identical types of
folly::Function, and one for folly::Functions with different
configurations.

Reviewed By: ericniebler

Differential Revision: D3106429

fb-gh-sync-id: 11b04e9bc709d52016ac94c078278410f5ee43c6
fbshipit-source-id: 11b04e9bc709d52016ac94c078278410f5ee43c6
folly/Function.h
folly/test/FunctionTest.cpp