tuple (_Swallow_assign::operator=): Add const.

2010-06-11  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/std/tuple (_Swallow_assign::operator=): Add const.
	(ignore): Replace anonymous namespace member with const instance.

From-SVN: r160613
This commit is contained in:
Jonathan Wakely 2010-06-11 15:02:33 +00:00 committed by Jonathan Wakely
parent d725a1a5c0
commit cff9004472
2 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2010-06-11 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/std/tuple (_Swallow_assign::operator=): Add const.
(ignore): Replace anonymous namespace member with const instance.
2010-06-10 Suresh Gumpula <suresh.gumpula@amd.com>
PR libstdc++/43918

View File

@ -689,16 +689,12 @@ namespace std
struct _Swallow_assign
{
template<class _Tp>
_Swallow_assign&
operator=(const _Tp&)
const _Swallow_assign&
operator=(const _Tp&) const
{ return *this; }
};
// TODO: Put this in some kind of shared file.
namespace
{
_Swallow_assign ignore;
}; // anonymous namespace
const _Swallow_assign ignore{};
/**
* Stores a tuple of indices. Used by bind() to extract the elements