diff --git a/libstdc++-v3/include/std/utility b/libstdc++-v3/include/std/utility index 21440e5d90ea..e9376dc8c705 100644 --- a/libstdc++-v3/include/std/utility +++ b/libstdc++-v3/include/std/utility @@ -1,6 +1,7 @@ // -*- C++ -*- -// Copyright (C) 2001, 2002, 2006 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 +// Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -83,6 +84,29 @@ # undef _GLIBCXX_BEGIN_NAMESPACE_TR1 # undef _GLIBCXX_INCLUDE_AS_CXX0X # endif + +#include + +namespace std +{ + // 20.2.2, forward/move + template + struct identity + { + typedef _Tp type; + }; + + template + inline _Tp&& + forward(typename std::identity<_Tp>::type&& __t) + { return __t; } + + template + inline typename std::remove_reference<_Tp>::type&& + move(_Tp&& __t) + { return __t; } +} + #endif #endif /* _GLIBCXX_UTILITY */