binding reference of type 'Set<int, 5>&' to 'const Set<int, 5>' discards qualifiers code example
Example: binding reference of type 'Set&' to 'const Set' discards qualifiers
Error is simple. Your constructor takes const reference but then you try to bind it into non-const reference member.