From 59e52d73874c2e755a6ed339454eba7840f79602 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Tue, 9 May 2017 11:08:55 +0200 Subject: [PATCH] [libaxx] Implement std::move Change-Id: I0c4c21ad8b8db4fc0f8c4ee61d9c79b49dd7b278 --- libaxx/Makefile | 2 ++ libaxx/include/utility | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 libaxx/include/utility diff --git a/libaxx/Makefile b/libaxx/Makefile index 6911cbcb3..376bd6070 100644 --- a/libaxx/Makefile +++ b/libaxx/Makefile @@ -1,2 +1,4 @@ +SFLAGS += -Ilibaxx/include + objs += $(addprefix libaxx/src/, new.o) objs += $(addprefix libaxx/src/cxxabi/, atexit.o pure_virtual.o) diff --git a/libaxx/include/utility b/libaxx/include/utility new file mode 100644 index 000000000..883f176fb --- /dev/null +++ b/libaxx/include/utility @@ -0,0 +1,16 @@ +#ifndef LIBAXX_UTILITY +#define LIBAXX_UTILITY + +namespace std { + +template struct remove_reference {typedef T type;}; +template struct remove_reference {typedef T type;}; +template struct remove_reference {typedef T type;}; + +template typename remove_reference::type&& move(T&&) { + return a; +} + +} + +#endif