File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
portability-template-virtual-member-function
4
4
============================================
5
5
6
+ Finds cases when an uninstantiated virtual member function in a template class causes
7
+ cross-compiler incompatibility.
8
+
6
9
Upon instantiating a template class, non-virtual member functions don't have to be
7
10
instantiated unless they are used. Virtual member function instantiation on the other hand
8
- is unspecified and depends on the implementation of the compiler. This check intends to find
9
- cases when a virtual member function is not instantiated but it might be with a different
10
- compiler.
11
+ is unspecified and depends on the implementation of the compiler.
11
12
12
13
In the following snippets the virtual member function is not instantiated by GCC and Clang,
13
14
but it is instantiated by MSVC, so while the snippet is accepted by the former compilers,
You can’t perform that action at this time.
0 commit comments