Opened 7 years ago

Closed 3 years ago

#12072 closed Bugs (duplicate)

Lots of C4265 warnings in test when using Visual Studio 2015

Reported by: Brett Hall <bretthall@…> Owned by: Raffi Enficiaud
Milestone: To Be Determined Component: test
Version: Boost 1.60.0 Severity: Problem
Keywords: Cc:

Description

When compiling a program that uses the test library with Visual 2015 lots of "C4265: 'class' : class has virtual functions, but destructor is not virtual" warnings are generated by the test_observer, test_unit_generator, and test_tree_visitor classes. I tracked the issue down to a single line in boost/test/detail/config.hpp. An #if is only checking for MSC_VER to be equal to 1400 (visual studio 2010) when it should be checking for greater than or equal to. I've attached a patch against this file that fixes the problem.

Attachments (1)

test-config-patch.txt (438 bytes ) - added by Brett Hall <bretthall@…> 7 years ago.
patch that fixes the issue

Download all attachments as: .zip

Change History (4)

by Brett Hall <bretthall@…>, 7 years ago

Attachment: test-config-patch.txt added

patch that fixes the issue

comment:2 by Raffi Enficiaud, 3 years ago

Owner: changed from Gennadiy Rozental to Raffi Enficiaud
Status: newassigned

Duplicates #11107

comment:3 by Raffi Enficiaud, 3 years ago

Resolution: duplicate
Status: assignedclosed
Note: See TracTickets for help on using tickets.