mirror of
https://github.com/boostorg/bimap.git
synced 2026-01-19 04:02:10 +00:00
6bbd6cbda38e4345425bbfca2be1e3bc2069c8f9
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>
Description
Mirrored via gitea-mirror
Languages
C++
99.8%
CMake
0.1%