Commit 10b1d799 authored by Shrikrishna Khare's avatar Shrikrishna Khare Committed by Facebook Github Bot

Back out "[folly][PR] handle noexcept in SignatureOf_ and ArgTypes_"

Summary: Original commit changeset: bb2af75d24d6

Reviewed By: yfeldblum

Differential Revision: D15998293

fbshipit-source-id: 9a5ba878f7571bd86dc4c2b6aa72b8764f631ffc
parent 0bb15ba8
...@@ -404,17 +404,6 @@ struct SignatureOf_<R (C::*)(As...) const, I> { ...@@ -404,17 +404,6 @@ struct SignatureOf_<R (C::*)(As...) const, I> {
using type = Ret<R, I> (*)(Data const&, Arg<As, I>...); using type = Ret<R, I> (*)(Data const&, Arg<As, I>...);
}; };
template <class R, class C, class... As, class I>
struct SignatureOf_<R (C::*)(As...) noexcept, I> {
using type = std::add_pointer_t<Ret<R, I>(Data&, Arg<As, I>...) noexcept>;
};
template <class R, class C, class... As, class I>
struct SignatureOf_<R (C::*)(As...) const noexcept, I> {
using type =
std::add_pointer_t<Ret<R, I>(Data const&, Arg<As, I>...) noexcept>;
};
template <class R, class This, class... As, class I> template <class R, class This, class... As, class I>
struct SignatureOf_<R (*)(This&, As...), I> { struct SignatureOf_<R (*)(This&, As...), I> {
using type = Ret<R, I> (*)(Data&, Arg<As, I>...); using type = Ret<R, I> (*)(Data&, Arg<As, I>...);
...@@ -436,11 +425,6 @@ struct ArgTypes_<User, I, Ret (*)(Data, Args...)> { ...@@ -436,11 +425,6 @@ struct ArgTypes_<User, I, Ret (*)(Data, Args...)> {
using type = TypeList<Args...>; using type = TypeList<Args...>;
}; };
template <FOLLY_AUTO User, class I, class Ret, class Data, class... Args>
struct ArgTypes_<User, I, Ret (*)(Data, Args...) noexcept> {
using type = TypeList<Args...>;
};
template <FOLLY_AUTO User, class I> template <FOLLY_AUTO User, class I>
using ArgTypes = _t<ArgTypes_<User, I>>; using ArgTypes = _t<ArgTypes_<User, I>>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment