От: | Barbar1an | ||
Дата: | 28.05.18 09:52 | ||
Оценка: |
class A{};
class B
{
B(const A & a)
{
}
};
void takeB(B & b)
{
}
A getA()
{
return A();
}
int main()
{
takeB(getA()); //cannot convert argument 1 from 'A' to 'B &'
return 0;
}