This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
gplib
Watch
1
Star
1
Fork
0
Code
Issues
8
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fixed stuff for trivially destructibles
Also works for fixing base types since they are trivially destructibles.
master
Ludovic 'Archivist' Lagouardette
3 years ago
parent
83a347f975
commit
7b756ce477
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
include/gp/containers/vector.hpp
+ 1
- 0
include/gp/containers/vector.hpp
View File
@ -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…
Cancel
Save