I would ask you to reconsider C++11 support (it makes the language much nicer to use - and you wouldn't need to keep removing C++11 features from code merged from other projects). Which IDE is it exactly? I am genuinely curious as I couldn't find one. Should I upload a revised version of this patch? If you prefer to have user defined empty destructor in there, it's fine by me - I care about removing these warnings. cpp : 161 : 18 : warning : deleting object of polymorphic class type ‘ saa1099_device ’ which has non - virtual destructor might cause undefined behavior 161 | delete device | ^ cpp : 160 : 18 : warning : deleting object of polymorphic class type ‘ saa1099_device ’ which has non - virtual destructor might cause undefined behavior 160 | delete device | ^ gameblaster. cpp : In destructor ‘ virtual CMS :: ~ CMS () ’ : gameblaster. Patch 6: using =default to mark destructor as virtual, without actually introducing empty user-defined constructor in there, thus vtable should stay the same as it is now, but compiler will ensure correct behaviour for subclasses (there is no way to ensure this compiler behaviour pre C++11 AFAIK).Īh, forgot to mention it with the submission - I intend these changes only for trunk and not to be backported to 0.74 branch. Patch 5: using to prevent memory leak, even if later someone will introduce new return statements in this function. In this particular patch series, patches 1, 2, 3 do not depend on C++11, while patches 5 and 6 do. ![]() For example: I had my changes working just fine on my local machine using the default compiler for my distro (GCC9) just to discover, that my changes do not compile in older Steam Runtime environment (GCC5.4) and it was not because of lack of support in the compiler - it was because of missing compiler flag enabling said support :). Also, autoconf-archive in Ubuntu 16.04 does not supply the macro for C++14 (compiler supports it, just autoconf packages are outdated there - they support C++11 though - it was 5 year old at the time).īy not setting baseline standard in the code, it is harder to maintain cross-compiler support nowadays. Popular Linux Distros Ubuntu 20.04 LTS (Focal Fossa) 73,250 Packages Ubuntu 22.04 LTS (Jammy Jellyfish) 69,543 Packages CentOS 8 / RHEL 8 15,935 Packages Ubuntu 18.04 LTS (Bionic Beaver) 77,372 Packages Ubuntu 16.04 LTS (Xenial Xerus) 61,875 Packages Ubuntu 21.04 (Hirsute Hippo) 36,998 Packages Ubuntu 20.10 (Groovy Gorilla) 33,295 Packages Ubuntu 21.10 (Impish Indri) 64,636 Packages Arch Linux 12,179 Packages Debian 11 (Bullseye) 58,819 Packages openSuSE Tumbleweed 48,211 Packages openSUSE Leap 40,198 Packages CentOS 7 / RHEL 7 650 Packages Fedora 36 68,099 Packages Manjaro 12,617 Packages CentOS Stream 8 17,085 Packages Debian 10 (Buster) 58,305 Packages Fedora 35 67,585 Packages Kali Linux 63,077 Packages Fedora 34 68,542 Packages Arch User Repository (AUR) 86,048 Packages Oracle Linux 8 19,969 Packages Ubuntu 22.10 (Kinetic Kudu) 67,133 Packages Amazon Linux 2 8,700 Packages Linux Mint 20.C++11, not C11 (these are different standards) every modern compiler uses C++14 as the default C++ standard nowadays - I thought about setting it to C++14, but some really, really, old compilers might not support it (I couldn't find one, but I bet someone would) - I think using 8-year old version of the language is reasonable in 2019. : any old DOS game using modern hardware. : DOSBox Staging is highly configurable, well-optimized and fast enough to run : joystick emulation (supports modern game controllers), serial port emulation, : emulation (also with audio encoded as FLAC, Opus, OGG/Vorbis, MP3 or WAV), : Gravis UltraSound, Disney Sound Source, Tandy Sound System), CD Digital Audio : chipsets (Hercules, CGA, EGA, VGA, SVGA), audio solutions (Sound Blaster, : It features built-in DOS-like shell terminal, emulation of several PC variants : capable of running DOS programs that require real or protected mode. ![]() ![]() Summary : DOS/x86 emulator focusing on ease of useĭescription : DOSBox Staging is full x86 CPU emulator (independent of host architecture),
0 Comments
Leave a Reply. |