【发布时间】:2013-05-21 02:14:12
【问题描述】:
#include <stack>
#include <functional>
int main()
{
std::stack<std::function<int()>> s;
s.push(main);
return s.top()();
}
我得到以下诊断结果:
result: runtime error time: 0.04s memory: 39704 kB signal: 11 (SIGSEGV)
这是怎么回事?
【问题讨论】:
标签: c++ stack runtime-error