尝试从 std::stack 中删除项目时出错
Error attempting to remove item from std::stack
当我尝试从 Vector<Stack<HWND>>
中删除一个元素时
v[index].pop(DestroyWindow(hwnd));
我收到错误消息
Error C2660:: function does not take 1 arguments
可能需要引起数据类型?
假设在这种情况下是 c++, std::stack::pop
does not take any arguments (and therefore does not take 1 argument, BOOL
,如错误所示)。相反,您应该 DestroyWindow(v[index].top())
,然后 pop
。
当我尝试从 Vector<Stack<HWND>>
v[index].pop(DestroyWindow(hwnd));
我收到错误消息
Error C2660:: function does not take 1 arguments
可能需要引起数据类型?
假设在这种情况下是 c++, std::stack::pop
does not take any arguments (and therefore does not take 1 argument, BOOL
,如错误所示)。相反,您应该 DestroyWindow(v[index].top())
,然后 pop
。