From 458dd32af8bc74c9420496acfa0b8754c0fa55c3 Mon Sep 17 00:00:00 2001 From: ykiko <486685280@qq.com> Date: Sun, 18 Feb 2024 23:08:05 +0800 Subject: [PATCH] mark some types in std as trivially_relocatable --- include/pocketpy/vector.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/pocketpy/vector.h b/include/pocketpy/vector.h index e328eb43..53bde13c 100644 --- a/include/pocketpy/vector.h +++ b/include/pocketpy/vector.h @@ -190,6 +190,26 @@ namespace pkpy { constexpr inline bool is_trivially_relocatable_v = TriviallyRelocatable::value; + template + struct TriviallyRelocatable>{ + constexpr static bool value = true; + }; + + template + struct TriviallyRelocatable>{ + constexpr static bool value = true; + }; + + template + struct TriviallyRelocatable>{ + constexpr static bool value = true; + }; + + template + struct TriviallyRelocatable>{ + constexpr static bool value = true; + }; + // the implementation of small_vector template class small_vector { public: