Fix to compile with Visual C++ and /Zc:implicitNoexcept-.#136
Fix to compile with Visual C++ and /Zc:implicitNoexcept-.#136jaykrell wants to merge 1 commit intoboostorg:developfrom
Conversation
/Zc:implicitNoexcept-.
Otherwise gets:
Error C2694 'override': overriding virtual function
has less restrictive exception specification than base
class virtual member function 'base'
Similar changes are being made e.g.:
boostorg/json#636
And proposed here:
boostorg/iostreams#136
I grant there there could be more of this.
These two are just enough for our codebase.
|
This PR doesn't look correct, because it uses These need to be |
|
Ok. Serious question then: instead of |
|
Since you specifically said |
How about |
based on PR feedback from my other PR (boostorg/iostreams#136)
|
I think you should squash the 3 commits into a single one, as it's not desirable to have not-quite-correct versions in the history. |
I agree, but, is it approved othewise? That can be done upon commit in the GitHub gui, including editing the commit message. Opinions vary and are strong about PR workflow. |
|
This looks OK to me. |
…Noexcept-. Otherwise gets: Error C2694 'override': overriding virtual function has less restrictive exception specification than base class virtual member function 'base' Similar changes are being made e.g.: boostorg/json#636
d810699 to
617e4b8
Compare
|
@mclow I squashed and rebased, ok? |
/Zc:implicitNoexcept-.
Otherwise gets:
Error C2694 'override': overriding virtual function
has less restrictive exception specification than base
class virtual member function 'base'
Similar changes are being made e.g.:
boostorg/json#636
And proposed here:
boostorg/iostreams#136
I grant there there could be more of this.
These two are just enough for our codebase.
|
Closing/reopening to retrigger CI. |
Otherwise gets:
Error C2694 'override': overriding virtual function
has less restrictive exception specification than base class virtual
member function 'base'
Similar changes are being made e.g.:
boostorg/json#636
See also, similar from me:
boostorg/format#85