This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33878] Pure virtual method body omitted from template
- From: "bangerth at math dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Apr 2008 12:52:49 -0000
- Subject: [Bug c++/33878] Pure virtual method body omitted from template
- References: <bug-33878-15256@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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