Thread: Help With Union-Find Problem

  1. #1
    Registered User
    Join Date
    Sep 2006

    Template class within another class

    What is the correct/best way to include a template class within another class? Thanks.

    I have the following:
    template <typename HashedObj>
    class HashTable
    and want to include it in another class:
    class DisjointSets
                friend class HashTable;     //This does not work
    Last edited by Bnchs; 12-02-2007 at 03:05 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 04-16-2004, 01:29 AM
  2. Request for comments
    By Prelude in forum A Brief History of
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  3. Replies: 5
    Last Post: 12-03-2003, 04:47 PM
  4. queued signals problem, C programming related
    By Unregistered in forum Linux Programming
    Replies: 3
    Last Post: 01-21-2002, 11:30 PM
  5. Can't find problem
    By b-ref in forum C Programming
    Replies: 2
    Last Post: 12-06-2001, 04:39 AM
Website Security Test