Can you explain why this won't compile:
(this is the error:
../Man.cpp:33:9: error: conversion from ‘Man (*)()’ to non-scalar type ‘Man’ requested)
Code:
Man goo(){ Man m(); return m;}
but this does:
Man goo(){ return Man();}
Can you explain why this won't compile:
(this is the error:
../Man.cpp:33:9: error: conversion from ‘Man (*)()’ to non-scalar type ‘Man’ requested)
Code:
Man goo(){ Man m(); return m;}
but this does:
Man goo(){ return Man();}