静的なstd :: forward_listでは、デバッガは1番目の要素のみを表示します。VS2010デバッガは静的なstd :: forward_listで失敗します。
静的ではないstd :: forward_listまたは静的なstd :: listは正常に動作します。
デバッガで使用できる回避策はありますか?
#include "stdafx.h"
#include <forward_list>
#include <list>
int _tmain(int argc, _TCHAR* argv[])
{
static std::forward_list<int> sfl;
sfl.push_front(1);
sfl.push_front(2);
std::forward_list<int> fl;
fl.push_front(1);
fl.push_front(2);
static std::list<int> sl;
sl.push_front(1);
sl.push_front(2);
//Break here.
//In a debugger watch window:
// 'sfl' only shows the '2' element
// 'fl' & 'sl' shows all elements.
return 0;
}