它看起来像是随机地告诉我这些事情...我该如何解决这个问题?这是我得到的:
First-chance exception at 0x7c812aeb in test.exe: Microsoft C++ exception: std::bad_alloc atFirst-chance exception at 0x7c812aeb in test.exe: Microsoft C++ exception: std::bad_alloc at memory locationFirst-chance exception at 0x7c812ae
我得到了一个编译器错误:我以前在其他项目中使用过下面的代码块,在try块中有不同的内存分配,没有问题。我希望有人能向我解释为什么bad_alloc没有被VS10识别,尽管它没有在其他程序中引起同样的问题?很可能我漏掉了一些小的句法,但我花了几个小时试图弄清楚,在这一点上,我觉得我可能对错误视而不见。try node* tbr = new node();} // End try allocat
::nullptr_t allocate_help(const Exception& ex,Int2Type<false>)const;allocate_help<std::bad_alloc>(e,Int2Type<true>()); //here e is of a std::bad_alloc type 错误3错误C2668:对重载函数的调用不明确为什么?