A type that is being used with an STL container has a private 'operator<'. The type you're trying to use must be made public.