독학하는 초보자라 물어볼데가 여기밖에 없넹ㅠ


Object of type 'Calender' cannot be assigned because its copy assignment operator is implicitly deleted

copy assignment operator of 'Calender' is implicitly deleted because field 'monthdays' is of const-qualified type 'const int [12]'


cosnt 정수형 배열을 멤버로 포함하는 클래스의 객체를 ex1 = ex2; 형태로 대입할려니 클래스에서 copy operator가 암시적으로 제거됐다는데 내가 보기엔 copy-assign할때 상수도 같이 복제할려고 해서 그런것 같거든

내가 생각할 수 있는 해결법은 const 속성을 없애거나 전역변수로 옮기거나 copy operator을 오버로딩 하는 법밖에 없는데 이것보다 더 깔끔하고 좋은 방법은 없는 걸까