[Development] operators as members or not

Glen Mabey glen.mabey at swri.org
Thu Aug 15 05:11:20 CEST 2013


I'm working on a couple of new classes and I wonder whether there is a policy (written or otherwise) on whether operators should be members or not.

In particular, this question has come up in 

I am no C++ philosopher, but I understand that some authorities (like stackoverflow) have their reasons for asserting that operators should not be members -- they also cite some sources.

Looks like Oliver Goffart did also weigh in on the issue, in 60792.

Is it possible that the Coding Conventions could be amended to indicate which way this issue should go, if only for new classes?

Glen Mabey

More information about the Development mailing list