Подскажите что не так делаю?
class A ;
class B
{
public:
B ( ) { }
B( uint min ) { }
operator A ( ) const ;
} ;
class A
{
const uint no = 45 ;
public:
A ( ) ;
A ( uint i ) ;
operator uint ( ) const ;
operator B ( ) const
{
B bb ;
return bb ;
}
} ;
A : : operator uint ( ) const
{
return 1 ;
}
A : : A ( ) { }
A : : A ( uint i ) { }
B : : operator A ( ) const
{ return A ( ) ; }
int main ( )
{
A aa ;
B bb ;
aa = bb ;
return 0 ;
}
Ошибка компилятора:
use of deleted function ‘A& A::operator=(A&&)’
aa = bb;
^~
non-static const member ‘const uint A::no’, can’t use default assignment operator