dogecoin / dogecoin

very currency
MIT License
14.4k stars 2.8k forks source link

build: allow c++14 standard to be used for compilation #3458

Closed patricklodder closed 2 months ago

patricklodder commented 3 months ago

This will allow testing the codebase against newer standards and increase compatibility with newer dependencies. Test it with --enable-c++14.

I think that c++14 should only be a step towards c++17, but that's a bigger change, so I figured doing the small step first. This compiles for me with gcc-11 - but has to be tested on all the gcc-9 cross compilers too. Doesn't need a gitian check, because we're not changing the default, which stays safely at c++11.