error: binding reference of type ‘Toy&’ to ‘const Toy’ discards qualifiers code example
Example: binding reference of type discards qualifiers
Error is simple. Your constructor takes const reference but then you try to bind it into non-const reference member.