* include/std/tuple (_Swallow_assign::operator=): Add const.
(ignore): Replace anonymous namespace member with const instance.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160613
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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