8

すなわち:

[](auto const& foo) {
    ??? bar; // should be same base type as foo, minus const&
}

これまでのところ、私は使用しています:

typename std::remove_const<typename std::remove_reference<decltype(foo)>::type>::type combination

しかし、もっと簡単な代替手段があることを本当に望んでいます!

4

1 に答える 1