Kode / Kinc

Modern low level game library and hardware abstraction.
http://kinc.tech
zlib License
517 stars 119 forks source link

Fix obsolete C++ syntax in DirectShow library #852

Closed samhocevar closed 8 months ago

samhocevar commented 8 months ago

Compiling using a recent version of the C++ standard (/std:c++latest) will fail to build these two files:

2>kinc\Backends\System\Windows\Libraries\DirectShow\BaseClasses\transip.h(214,55): error C4596: 'Copy': illegal qualified name in member declaration
2>(compiling source file '../../../kinc/Backends/System/Windows/Sources/kinc/backend/windowscppunit.cpp')
2>kinc\Backends\System\Windows\Libraries\DirectShow\BaseClasses\videoctl.h(54,30): error C2385: ambiguous access of '{dtor}'
2>(compiling source file '../../../kinc/Backends/System/Windows/Sources/kinc/backend/windowscppunit.cpp')
2>kinc\Backends\System\Windows\Libraries\DirectShow\BaseClasses\videoctl.h(54,30):
2>could be the '{dtor}' in base 'IDirectDraw'
2>kinc\Backends\System\Windows\Libraries\DirectShow\BaseClasses\videoctl.h(54,30):
2>or could be the '{dtor}' in base 'CUnknown'
2>kinc\Backends\System\Windows\Libraries\DirectShow\BaseClasses\videoctl.h(54,30): error C3254: 'CAggDirectDraw': class contains explicit override '{dtor}' but does not derive from an interface that contains the function declaration
2>(compiling source file '../../../kinc/Backends/System/Windows/Sources/kinc/backend/windowscppunit.cpp')
2>kinc\Backends\System\Windows\Libraries\DirectShow\BaseClasses\videoctl.h(54,30): error C3244: 'CAggDirectDraw::~CAggDirectDraw(void)': this method was introduced by '<Unknown>' not by 'IDirectDraw'
2>(compiling source file '../../../kinc/Backends/System/Windows/Sources/kinc/backend/windowscppunit.cpp')