Click here to Skip to main content
15,887,285 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
I already made a function but just not printing and giving the error with compatability of the << operator and the void type of the function.

Error binary '<<': no operator found which takes a right-hand operand of type 'void' (or there is no acceptable conversion)

What I have tried:

std::cout << Utilities() << std::endl;
Posted
Updated 29-Jul-18 2:42am

1 solution

It has nothing to do with Vs 2017...
'<<' operator[^] is used to insert (push) the right side value to the left side stream (in this case cout)...
However Utilities() returns nothing (void)!!!
 
Share this answer
 
Comments
Member NFOC 29-Jul-18 11:45am    
Thank you for your response it helped.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900