udoprog / c10t

A minecraft cartography tool
Other
225 stars 50 forks source link

Fix a build error I was experiencing with HEAD #145

Closed tabacco closed 13 years ago

tabacco commented 13 years ago

Trying to build main.cpp, I was getting a "ambiguous overload for 'operator=='" build error in main.cpp:

/root/c10t/src/main.cpp:196: error: ambiguous overload for 'operator==' in 'total == 0' /root/c10t/src/main.cpp:196: note: candidates are: operator==(std::streamoff, int)

Casting total to int before trying to compare to 0 cleared it up.

udoprog commented 13 years ago

Which compiler was this run against?

There should be a line stating what template argument T has, is it available to you?

udoprog commented 13 years ago

This was resolved in another pull request, still. Thanks for your feedback!