Make EventBaseLocal::getOrCreate work with noncopyable args
authorVictor Zverovich <viz@fb.com>
Sat, 18 Mar 2017 13:29:19 +0000 (06:29 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 18 Mar 2017 13:34:37 +0000 (06:34 -0700)
commitcafd8d8eda615c4576e78858f4055ebf34c89b4b
treeaefb135619f7aa42ce4871ad66f9e065f13b609a
parentaee35091f1e7c24e15aa1443c5d25c88ecf420e9
Make EventBaseLocal::getOrCreate work with noncopyable args

Summary: Use perfect forwarding in `EventBaseLocal::getOrCreate` to make it work with noncopyable but moveable arguments.

Reviewed By: yfeldblum

Differential Revision: D4730566

fbshipit-source-id: fa02348b7a9217fef980ec5e743b5990b9d19e9a
folly/io/async/EventBaseLocal.h
folly/io/async/test/EventBaseLocalTest.cpp