#ifndef UNICODE
#define UNICODE
#endif
#include <iostream>
#include <queue>
#include <stdio.h>
#include <Windows.h>
#include <string>
using namespace std;
int __cdecl main()
{
std::queue<std::basic_string<TCHAR>> results;
results.push(TEXT("Hello world! ♥☻☺"));
wcout<<results.front();
delete [] results.front();
system("pause");
return 0;
}
错误 1 错误 C2440: 'delete' : 无法从 'std::basic_string<_Elem,_Traits,_Ax>' 转换为 'void *' C:\Users\Tomek\Documents\Visual Studio 2010\Solutions\clean_rough_draft\clean_rough_draft\main .cpp 20 1 clean_rough_draft
为什么会抛出这样的错误以及如何解决它?