Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends.,

Compiled error while compile C++ 6.0 Project on VS C++ 6.0 IDE:

error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class HashInfo' (or there is no acceptable conversion)

How to fix the issue?
Posted

Define a "<<" operator that does take a class HashInfo?

C++ operator overloading[^]
 
Share this answer
 
You have to put an integer to the right side of the << operator, not a HashInfo.
 
Share this answer
 
Comments
Philippe Mori 10-Sep-15 12:29pm    
Maybe if that integer is the only member one want to output...

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