From ec7df5727ec60d8a3b2f774aaef510911d610841 Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Sat, 13 Feb 2021 02:32:26 -0800 Subject: [PATCH] Fix virtual overriding --- src/BC1/BC1Decoder.cpp | 2 +- src/BlockDecoder.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/BC1/BC1Decoder.cpp b/src/BC1/BC1Decoder.cpp index 8a394bd..862bf1d 100644 --- a/src/BC1/BC1Decoder.cpp +++ b/src/BC1/BC1Decoder.cpp @@ -23,7 +23,7 @@ #include "../blocks.h" namespace rgbcx { -void BC1Decoder::DecodeBlock(Color4x4 dest, BC1Block *const block) const { +void BC1Decoder::DecodeBlock(Color4x4 dest, BC1Block *const block) const noexcept(ndebug) { const auto l = block->GetLowColor(); const auto h = block->GetHighColor(); const auto selectors = block->UnpackSelectors(); diff --git a/src/BlockDecoder.h b/src/BlockDecoder.h index bc4dddd..a3825a9 100644 --- a/src/BlockDecoder.h +++ b/src/BlockDecoder.h @@ -26,6 +26,7 @@ #include "ColorBlock.h" #include "util.h" +#include "ndebug.h" namespace rgbcx { @@ -36,7 +37,7 @@ template class BlockDecoder { BlockDecoder() noexcept = default; virtual ~BlockDecoder() noexcept = default; - virtual void DecodeBlock(DecodedBlock dest, EncodedBlock *const block) const = 0; + virtual void DecodeBlock(DecodedBlock dest, EncodedBlock *const block) const noexcept(ndebug) = 0; void DecodeRow(std::span dests, std::span blocks) { assert(dests.size() == blocks.size());