Make Checked build compatible with VS2019 16.7.0 Preview 3.1

The latest version of VS checks better if noexcept can be added to a constructor. Update the source for this improved checking.
This commit is contained in:
Victor Derks 2020-06-27 22:01:19 +02:00
parent 18d80af996
commit c884847eca
5 changed files with 5 additions and 4 deletions

View File

@ -108,6 +108,7 @@
<RunCodeAnalysis Condition="'$(MSBuildProjectExtension)'=='.vcxproj'" >true</RunCodeAnalysis>
<EnableCppCoreCheck>true</EnableCppCoreCheck>
<EnableClangTidyCodeAnalysis>true</EnableClangTidyCodeAnalysis>
<EnableMicrosoftCodeAnalysis>true</EnableMicrosoftCodeAnalysis>
</PropertyGroup>
</Project>

View File

@ -18,7 +18,7 @@ namespace charls {
class DecoderStrategy
{
public:
explicit DecoderStrategy(const frame_info& frame, const coding_parameters& parameters) :
explicit DecoderStrategy(const frame_info& frame, const coding_parameters& parameters) noexcept :
frame_info_{frame},
parameters_{parameters}
{

View File

@ -12,7 +12,7 @@ namespace charls {
class EncoderStrategy
{
public:
explicit EncoderStrategy(const frame_info& frame, const coding_parameters& parameters) :
explicit EncoderStrategy(const frame_info& frame, const coding_parameters& parameters) noexcept :
frame_info_{frame},
parameters_{parameters}
{

View File

@ -110,7 +110,7 @@ public:
using PIXEL = typename Traits::PIXEL;
using SAMPLE = typename Traits::SAMPLE;
JlsCodec(Traits inTraits, const frame_info& frame_info, const coding_parameters& parameters) :
JlsCodec(Traits inTraits, const frame_info& frame_info, const coding_parameters& parameters) noexcept :
Strategy{update_component_count(frame_info, parameters), parameters},
traits{std::move(inTraits)},
width_{frame_info.width}

View File

@ -11,7 +11,7 @@ namespace test {
class EncoderStrategyTester final : charls::EncoderStrategy
{
public:
explicit EncoderStrategyTester(const charls::frame_info& frame_info, const charls::coding_parameters& parameters) :
explicit EncoderStrategyTester(const charls::frame_info& frame_info, const charls::coding_parameters& parameters) noexcept :
EncoderStrategy(frame_info, parameters)
{
}