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>
PR libstdc++/43918
......
......@@ -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
......
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