mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[libaxx] Implement std::move
Change-Id: I0c4c21ad8b8db4fc0f8c4ee61d9c79b49dd7b278
This commit is contained in:
@@ -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
16
libaxx/include/utility
Normal 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
|
||||
Reference in New Issue
Block a user