explicit specialization of methods of a template class in several .so

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 2170 Views - Last Post: 22 June 2011 - 09:21 AM Rate Topic: -----

#16 tlknv  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 21-June 11

Re: explicit specialization of methods of a template class in several .so

Posted 22 June 2011 - 09:12 AM

Dear JackOfAllTrades, post #11 clearly states: "I got the answer at codeguru forum" and provides the essential part of the answer. If something wastes time of others it's yours(#15) and Salem_c's(#2) replies.
Was This Post Helpful? 0
  • +
  • -

#17 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 769
  • View blog
  • Posts: 2,246
  • Joined: 20-March 10

Re: explicit specialization of methods of a template class in several .so

Posted 22 June 2011 - 09:21 AM

For thread clarity its answered here

CodeGuru Link

Quote

Originally Posted by C++0x-draft-n3092, 14.7.3.6
If a template, a member template or the member of a class template is explicitly specialized then that
specialization shall be declared before the first use of that specialization that would cause an implicit instantiation to take place, in every translation unit in which such a use occurs; no diagnostic is required. If the program does not provide a definition for an explicit specialization and either the specialization is used in a way that would cause an implicit instantiation to take place or the member is a virtual member function, the program is ill-formed, no diagnostic required. An implicit instantiation is never generated for an explicit specialization that is declared but not defined.

This post has been edited by snoopy11: 22 June 2011 - 09:22 AM

Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2