From ce8f2ca4e52966462d273ccb0a6ee7a53f4973e3 Mon Sep 17 00:00:00 2001 From: Kiran Jojare <111842372+kiranj26@users.noreply.github.com> Date: Sat, 7 Feb 2026 21:18:19 -0500 Subject: [PATCH] Fix C++11 destroy_at declaration --- src/Defines.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Defines.h b/src/Defines.h index 042397f..8b24a20 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -61,7 +61,7 @@ namespace EmbeddedProto #elif __cplusplus >= 201103L // C++11 template - constexpr void destroy_at(T* p) + inline void destroy_at(T* p) { p->~T(); } @@ -96,4 +96,4 @@ namespace EmbeddedProto } } -#endif //_EMBEDDED_PROTO_DEFINES_H_ \ No newline at end of file +#endif //_EMBEDDED_PROTO_DEFINES_H_