This website works better with JavaScript.
首頁
探索
說明
登入
Archivist
/
gplib
關註
1
收藏
1
複製
0
程式碼
問題管理
8
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
fixed stuff for trivially destructibles
Also works for fixing base types since they are trivially destructibles.
master
Ludovic 'Archivist' Lagouardette
3 年之前
父節點
83a347f975
當前提交
7b756ce477
共有
1 個文件被更改
,包括
1 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
include/gp/containers/vector.hpp
+ 1
- 0
include/gp/containers/vector.hpp
查看文件
@ -88,6 +88,7 @@ namespace gp{
new
(
ary
+
i
)
T
(
oth
[
i
]
)
;
}
}
else
if
(
sz
>
oth
.
sz
)
{
if
constexpr
(
!
std
:
:
is_trivially_destructible_v
<
T
>
)
for
(
size_t
i
=
oth
.
sz
;
i
<
sz
;
+
+
i
)
{
ary
[
i
]
-
>
~
T
(
)
;
}
Write
Preview
Loading…
取消
儲存