boost-ext / di

C++14 Dependency Injection Library
https://boost-ext.github.io/di
1.16k stars 140 forks source link

:bug: Fix #404 - On gcc 9+, turn pedantic into warning where needed #406

Closed jamespharvey20 closed 5 years ago

jamespharvey20 commented 5 years ago

Problem:

Solution:

jamespharvey20 commented 5 years ago

IMO better than my #405 pull request, because this only downgrades pedantic into a warning in the two locations necessary, and it still only does so on gcc 9+.

I tried -std=gnu++1y as an alternative, but that generated the same errors.

krzysztof-jusiak commented 5 years ago

Nice one @jamespharvey20 :+1: