std::tr1::hash specialization for a private nested class...

I have a class similar to the following:
1
2
3
4
5
6
7
8
9
10
11
12
13
// If I place the specialization here then Outer::Nested hasn't been defined.
class Outer {
public:
    ...
private:
    class Nested {
        ...
    };
    ...
    unordered_map<Nested, ...> map;
    ...
};
// If I place the specialization here then it's after it's first instantiation. 

I'm trying to work out where I can put a specialization of std::tr1::hash for the class Nested. Everything I've tried has thrown errors.
Topic archived. No new replies allowed.