Changeset 46579

Timestamp:
Jun 21, 2008, 3:32:11 PM (14 years ago)
Author:
Daniel James
Message:

Define unordered containers' friend functions outside of the class.

On some compilers, friend functions are being instantiated when the main class
is explicitly instantiated. This is slightly problematic because the equality
functions (which are an extension) put extra requirements on the types used. So
I'm going to try defining the functions outside of the class, in the hope that
they won't get instantiated. If someone wants non-member functions to be
instantiated, I think it's reasonable to expect them to explicitly instantiate
them, especially as compilers don't seem to be consistent about this.

(No files)

Note: See TracChangeset for help on using the changeset viewer.