ExceptionWrapper: use std::decay in implicit constructor
authorTudor Bosman <tudorb@fb.com>
Fri, 12 Jun 2015 23:57:02 +0000 (16:57 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 15 Jun 2015 20:34:36 +0000 (13:34 -0700)
commitbf87ffac83b2a36aadbb4bb3c106b36258c06a20
tree47a4abdb413e6ee81b91be7f4eb61137468c5308
parentae93c76d80b8959abc31ab2912b55ff91fb67d5d
ExceptionWrapper: use std::decay in implicit constructor

Summary: Because Ex resolves to SomeException&, and then all the tests in optimize<>
fail.

Reviewed By: @yfeldblum

Differential Revision: D2152893
folly/ExceptionWrapper.h
folly/test/ExceptionWrapperTest.cpp