2
0
mirror of https://github.com/boostorg/bimap.git synced 2026-01-19 04:02:10 +00:00
Files
bimap/include/boost
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-08-09 22:26:45 +02:00