Menu

#417 operator>> viewed as global function

open
nobody
5
2012-09-26
2004-10-05
Anonymous
No

In a template class, my definition :
PILE &operator>>( type &v ){ ...
leads to its classification and the classification of all
subsequent methods of the class in the category global
function. Same with <<. The problem seems to disappear
when spelled :
PILE & operator >>( type &v ){ ...
with spaces between & and operator and between
operator and >>

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.