Help With Union-Find Problem

This is a discussion on Help With Union-Find Problem within the C++ Programming forums, part of the General Programming Boards category; What is the correct/best way to include a template class within another class? Thanks. I have the following: Code: template ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    55

    Template class within another class

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

    I have the following:
    Code:
    template <typename HashedObj>
    class HashTable
    {
      ...
    and want to include it in another class:
    Code:
    class DisjointSets
    {
      public:
                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, 02:29 AM
  2. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21