folly::_t and use it in folly::exception_wrapper
Summary: [Folly] `folly::_t` and use it in `folly::exception_wrapper`. Intended in part for use in Folly code, but can be used outside. Instead of: ```lang=c++ namespace folly { using original = //... using decayed = typename std::decay<original>::type; } ``` In C++14: ```lang=c++ namespace folly { using original = //... using decayed = std::decay_t<original>; } ``` And in C++11: ```lang=c++ namespace folly { using original = //... using decayed = _t<std::decay<original>>: } ``` Not perfect, but better. HT ericniebler and https://github.com/eniebler/meta. Reviewed By: ericniebler Differential Revision: D4371539 fbshipit-source-id: 9046d9caab73141b95f4bce4fb1af26e0c1ac739
Showing
Please register or sign in to comment