From 29853cb20119fbfbf969c0c55c7c6ba5ad41df5b Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 29 Jun 2022 18:14:42 +0200 Subject: [PATCH] Revert "feat: Add compatibility for std::move function" The implementation was incorrect (returning T& instead of T&&). Until a working version is provided (which requires additional work), it would be better to not provide it at all. Users that need this can use other libraries to complement ArduinoSTL with C++11 bits already, like https://github.com/hideakitai/ArxTypeTraits This reverts commit 75367269a46acc8304e48fcaa886a275644bf8cb. --- src/utility | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/utility b/src/utility index 8e7081d6..96c50008 100644 --- a/src/utility +++ b/src/utility @@ -80,11 +80,7 @@ namespace std{ return pair(x, y); } - // Stubb out move for compatibility - template - T& move(T& t) noexcept { - return t; - } + } #pragma GCC visibility pop