คำถามในหัวข้อ 'result-of'
ผลลัพธ์ C ++ 11 ของการอนุมานประเภทฟังก์ชันของฉันล้มเหลว
ฉันกำลังลองใช้โปรแกรมด้านล่าง:
#include<type_traits>
using namespace std;
template <class F, class R = typename result_of<F()>::type>
R call(F& f) { return f(); }
int answer() { return 42; }
int main()
{
call(answer);...
69 มุมมอง
schedule
14.01.2024