Commit cff90044 by Jonathan Wakely Committed by Jonathan Wakely

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
parent d725a1a5
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> 2010-06-10 Suresh Gumpula <suresh.gumpula@amd.com>
PR libstdc++/43918 PR libstdc++/43918
......
...@@ -689,16 +689,12 @@ namespace std ...@@ -689,16 +689,12 @@ namespace std
struct _Swallow_assign struct _Swallow_assign
{ {
template<class _Tp> template<class _Tp>
_Swallow_assign& const _Swallow_assign&
operator=(const _Tp&) operator=(const _Tp&) const
{ return *this; } { return *this; }
}; };
// TODO: Put this in some kind of shared file. const _Swallow_assign ignore{};
namespace
{
_Swallow_assign ignore;
}; // anonymous namespace
/** /**
* Stores a tuple of indices. Used by bind() to extract the elements * Stores a tuple of indices. Used by bind() to extract the elements
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment