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.

Auth0 Logo