现在回想起来,学习和使用C语言,给我的幸福和抓狂好像都早已平淡,所谓难忘的瞬间,很多都已忘记了。因为这些感觉已经淹没在了新的幸福及抓狂的感觉,和难忘的瞬间中:
template<typename IF, typename PARAM, typename... EPS>
class if_impl_t : public PARAM {
static_assert(sizeof...(EPS) >= 1, "the interface must have at least one endpoint");
public:
static const uint_fast8_t size = sizeof...(EPS);
template<int IEP, typename EP, typename... REST>
struct ep_desc_t : public descriptor::ep_t<EP, IEP>, public ep_desc_t<IEP + 1, REST...> { };
template<int IEP, typename EP>
struct ep_desc_t<IEP, EP> : public descriptor::ep_t<EP, IEP> { };
template<int IEP>
struct ep_desc_cap_t : public ep_desc_t<IEP, EPS...> { };
__INLINE constexpr if_impl_t()
{
}
.......
|