不完整类型不允许错误和元组

Dev*_*per 3 c++ std visual-c++

所以我面临这个错误

不允许使用不完整的类型

#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;
}
Run Code Online (Sandbox Code Playgroud)

任何线索?

Jes*_*uhl 16

你需要#include <tuple>能够使用它.