Reasons for explicit template instantiation.

Discussion in 'C++' started by BigMan, Apr 28, 2005.

  1. BigMan

    BigMan Guest

    Why should one want to instantiate a template explicitly?
    BigMan, Apr 28, 2005
    #1
    1. Advertising

  2. BigMan wrote:
    > Why should one want to instantiate a template explicitly?
    >


    If one doesn't want to provide the source to the implementation
    and instead wants to put it in the library _and_ if one only wants
    to provide that implementation for a particular set of types.

    V
    Victor Bazarov, Apr 28, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. C. Carbonera
    Replies:
    4
    Views:
    1,340
    C. Carbonera
    Feb 5, 2004
  2. Fernando Cuenca
    Replies:
    4
    Views:
    2,522
    Gianni Mariani
    Sep 6, 2004
  3. Thomas Maier-Komor
    Replies:
    6
    Views:
    613
    Thomas Maier-Komor
    May 19, 2005
  4. Replies:
    1
    Views:
    570
    Salt_Peter
    Dec 25, 2006
  5. Noah Roberts
    Replies:
    6
    Views:
    1,152
    Johannes Schaub (litb)
    Feb 2, 2011
Loading...

Share This Page