summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOuyancheng <1024842937@qq.com>2021-06-28 12:10:55 -0700
committerGitHub <noreply@github.com>2021-06-28 19:10:55 +0000
commit43fffe772a89537dfecea7e63352a03b922a0fbc (patch)
treea8fa0187b65cf14391bd13198955e550bed33fae
parent78031276c7452fd687c4a6253ff0f82c501dbac2 (diff)
Further fix #6453 (#6804)
There's one spot left in issue #6453, that is the call to `std::allocator<T>::destroy` in `mkMetaKind`. And this commit fixes it.
-rwxr-xr-xsrc/expr/mkmetakind2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/mkmetakind b/src/expr/mkmetakind
index 88208d776..f9b49fc0a 100755
--- a/src/expr/mkmetakind
+++ b/src/expr/mkmetakind
@@ -279,7 +279,7 @@ $3 const& NodeValue::getConst< $3 >() const {
cname=`echo "$3" | awk 'BEGIN {FS="::"} {print$NF}'`
metakind_constDeleters="${metakind_constDeleters}
case kind::$1:
- std::allocator< $3 >().destroy(reinterpret_cast< $3* >(nv->d_children));
+ std::destroy_at(reinterpret_cast< $3* >(nv->d_children));
break;
"
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback