回答編集履歴

1

内容追記

2019/02/05 06:35

投稿

kazto
kazto

スコア7196

test CHANGED
@@ -12,10 +12,16 @@
12
12
 
13
13
  ```C++
14
14
 
15
+ vector<Hogehoge> _new_list;
16
+
15
17
  for (auto itr : _data_list)
16
18
 
17
19
  { // 初期の数値を読み込む
18
20
 
21
+ Hogehoge new_item(itr); // ←要コピーコンストラクタ
22
+
19
- itr.value = GetPrivateProfileInt(itr.section.c_str(), itr.key.c_str(), itr.value, itr.path.c_str());
23
+ new_item.value = GetPrivateProfileInt(itr.section.c_str(), itr.key.c_str(), itr.value, itr.path.c_str());
24
+
25
+ _new_list.push_back(new_item);
20
26
 
21
27
  ```