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:
parent
d725a1a5c0
commit
cff9004472
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue