This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33878] Pure virtual method body omitted from template



------- Comment #8 from bangerth at math dot tamu dot edu  2008-04-01 12:52 -------
Subject: Re:  Pure virtual method body omitted from template


> thanks for the clarification. I should have realized it myself, though. I
> solved the problem in another way, but out of pure curiosity: How can I
> implicitly instatiate this function

That's a self-contradiction. The term "implicit instantiation" refers to 
something that the compiler does without any explicit user request, so 
there is no way to "implicitly instatiate this function yourself" :-)

You could explicitly instantiate this function, but...

> It needs to be a generic solution

The only possibility in this case would be to put the function into your 
header file. I believe that that should work in your case.

Best
 Wolfgang

-------------------------------------------------------------------------
Wolfgang Bangerth                email:            bangerth@math.tamu.edu
                                 www: http://www.math.tamu.edu/~bangerth/


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33878


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]