implicit instantiation of virtual template method causes confusing warning - by Krishty

Status : 

  Deferred<br /><br />
		The product team has reviewed this issue and has deferred it for consideration at a later time.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


9
0
Sign in
to vote
ID 778490 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 2/4/2013 11:29:49 AM
Access Restriction Public

Description

It looks like calling the virtual method of a template causes all of its virtual methods being instantiated. According to the C++ standard, this is alright.

However, if one of the methods was defined outside of the class, warning C4505 (unreferenced local function has been removed) is raised. I suppose this is due to Visual C++ omitting the needless virtual functions it instantiated right before.

The warning is pretty confusing and should either be changed or disabled.
Sign in to post a comment.
Posted by Macy [MSFT] on 2/4/2013 at 9:54 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Macy [MSFT] on 2/4/2013 at 11:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)