[libaxx] Implement std::move

Change-Id: I0c4c21ad8b8db4fc0f8c4ee61d9c79b49dd7b278
This commit is contained in:
Romain Goyet
2017-05-09 11:08:55 +02:00
parent 3c3981e0e4
commit 59e52d7387
2 changed files with 18 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
SFLAGS += -Ilibaxx/include
objs += $(addprefix libaxx/src/, new.o)
objs += $(addprefix libaxx/src/cxxabi/, atexit.o pure_virtual.o)

16
libaxx/include/utility Normal file
View File

@@ -0,0 +1,16 @@
#ifndef LIBAXX_UTILITY
#define LIBAXX_UTILITY
namespace std {
template <class T> struct remove_reference {typedef T type;};
template <class T> struct remove_reference<T&> {typedef T type;};
template <class T> struct remove_reference<T&&> {typedef T type;};
template <class T> typename remove_reference<T>::type&& move(T&&) {
return a;
}
}
#endif