Confused by Fcn Sig

I was looking at some code in regards to a singleton and I came across the following:

1
2
S(S const&);              // Don't Implement
void operator=(S const&); // Don't implement 


I understand the Singleton pattern and I also understand why these are not to be implemented, but I was confused by the function signatures.

I would typically write the same code as:

1
2
S(const S&);              // Don't Implement
S& operator=(const S&); // Don't implement 


I realize a function cannot be overloaded by its return type. I assume voiding the return type might just be shorthand or may emphasis the fact that the function is not to be implemented.

However, I don't think I have ever seen someone switch the order of the type and the const. Why would they do this?

Topic archived. No new replies allowed.