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 04: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, 10:33 AM
  3. Replies: 5
    Last Post: 12-03-2003, 05:47 PM
  4. queued signals problem, C programming related
    By Unregistered in forum Linux Programming
    Replies: 3
    Last Post: 01-22-2002, 12:30 AM
  5. Can't find problem
    By b-ref in forum C Programming
    Replies: 2
    Last Post: 12-06-2001, 05:39 AM