templates and implementation files

This is a discussion on templates and implementation files within the C++ Programming forums, part of the General Programming Boards category; http://www.bgsu.edu/departments/comp...templates.html There is never an implementation file (*.cpp) for a template class. All of the member functions should be declared ...

  1. #1
    3735928559
    Join Date
    Mar 2008
    Location
    RTP
    Posts
    839

    templates and implementation files

    http://www.bgsu.edu/departments/comp...templates.html

    There is never an implementation file (*.cpp) for a template class. All of the member functions should be declared in the header file
    why?

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    890

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Fun with templates.
    By SlyMaelstrom in forum C++ Programming
    Replies: 1
    Last Post: 03-22-2006, 06:06 PM
  2. Questions about Templates
    By Shamino in forum C++ Programming
    Replies: 4
    Last Post: 12-17-2005, 11:22 PM
  3. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2004, 11:22 PM
  4. include question
    By Wanted420 in forum C++ Programming
    Replies: 8
    Last Post: 10-17-2003, 03:49 AM

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