From ad29f96e5b657f43c135caffb9b897771a2751e3 Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Tue, 28 Oct 2003 09:42:43 +0000 Subject: [PATCH] updated swallow_assign constness bug [SVN r20520] --- include/boost/tuple/detail/tuple_basic.hpp | 2 +- include/boost/tuple/detail/tuple_basic_no_partial_spec.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/tuple/detail/tuple_basic.hpp b/include/boost/tuple/detail/tuple_basic.hpp index 5e3727e..1bf5966 100644 --- a/include/boost/tuple/detail/tuple_basic.hpp +++ b/include/boost/tuple/detail/tuple_basic.hpp @@ -581,7 +581,7 @@ namespace detail { struct swallow_assign { template - swallow_assign& operator=(const T&) { + swallow_assign const& operator=(const T&) const { return *this; } }; diff --git a/include/boost/tuple/detail/tuple_basic_no_partial_spec.hpp b/include/boost/tuple/detail/tuple_basic_no_partial_spec.hpp index f4cdde9..2fc5214 100644 --- a/include/boost/tuple/detail/tuple_basic_no_partial_spec.hpp +++ b/include/boost/tuple/detail/tuple_basic_no_partial_spec.hpp @@ -96,7 +96,7 @@ namespace tuples { struct swallow_assign { template - swallow_assign& operator=(const T&) + swallow_assign const& operator=(const T&) const { return *this; }