Thread: Template class serialization

  1. #1

    Template class serialization

    A while ago I developed an optimized class factory for an application, however I now need to serialize template classes, necessarily forcing me to register each specialization separately thereby creating a separate entry in the hash table thus wasting resources. Therefor I wonder: how do one correctly serialize template classes?

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    because each specialization is another class/type in its own right I cant see any way around registerring itself with the factory so I would say that your doing it all right already.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

  3. #3
    Surely some obscure little workaround must exist...however it seems quite impossible to find...
    Thanks for you help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Default class template problem
    By Elysia in forum C++ Programming
    Replies: 5
    Last Post: 07-11-2008, 08:44 AM
  3. linker error
    By tasha302 in forum C++ Programming
    Replies: 3
    Last Post: 12-14-2006, 12:00 AM
  4. Function template in Class template?
    By Aidman in forum C++ Programming
    Replies: 3
    Last Post: 10-28-2003, 09:50 AM
  5. structure vs class
    By sana in forum C++ Programming
    Replies: 13
    Last Post: 12-02-2002, 07:18 AM