2
0
mirror of https://github.com/boostorg/bimap.git synced 2026-01-19 04:02:10 +00:00
Ignacy Gawędzki 6bbd6cbda3 Fix mutant_relation::operator=.
Defining

  template <bool FM>
  mutant_relation& operator=(const mutant_relation<TA, TB, Info, FM>& rel) {
    base_::change_to(rel);
    return *this;
  }

does not prevent the compiler from implicitly providing

  mutant_relation& operator=(const mutant_relation&);

and hence the implicit version takes over when FM == force_mutable and
does not call base_::change_to.

Replace the template version with two non-template overloads, both
calling base_::change_to.

Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr>
2024-08-09 22:26:45 +02:00
2024-04-01 20:34:49 +03:00
2024-04-01 18:19:19 +02:00
2014-08-18 14:57:33 +01:00
2007-05-25 01:07:13 +00:00
2021-05-29 17:29:29 +03:00
2023-02-23 10:11:32 +02:00
Description
Mirrored via gitea-mirror
4.4 MiB
Languages
C++ 99.8%
CMake 0.1%