This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
1) Find the person who put vector<bool> in the standard and beat them.
2) Add a new overload of __move
template<class _Tp> inline const _Tp& __move(const _Tp& __in) { return __in; }
so temporaries are passed stright through.
3) change __move to use enable_if, something like:
template<class _Tp> inline __rvalref<_Tp> __move(__enable_if<_Tp &, std::__is_moveable<_Tp>::value> __in) { return __rvalref<_Tp>(__in); }
template<class _Tp> inline const _Tp& __move(__enable_if<const _Tp &, !std::__is_moveable<_Tp>::value> __in) { return __in; }
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |