Incomplete type is not allowed 错误和元组

Incomplete type is not allowed error and a tuple

所以我遇到了这个错误

Incomplete type is not allowed

#include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <ctype.h>
#include <sstream>
using namespace std;

int main()
{
    std::tuple<int, bool, float> human = {345, true, 2.33}; 
    // Incomplete type is not allowed  

    system("pause");
    return 0;
}

有线索吗?

您需要 #include <tuple> 才能使用它。

没有包含头文件。