binding reference of type ‘int&’ to ‘const int’ 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.