kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit 16f67cd0fbb660180629820e13429ab83d36cade
parent cb425db4be76de9a1532d13267d6c5f679aae194
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date:   Wed,  7 Sep 2016 14:20:01 +0300

Remove infinite structure

Diffstat:
Minclude/kfr/base/types.hpp | 12------------
Minclude/kfr/base/univector.hpp | 1-
2 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/include/kfr/base/types.hpp b/include/kfr/base/types.hpp @@ -198,18 +198,6 @@ inline datatype operator&(datatype x, datatype y) return static_cast<datatype>(static_cast<type>(x) | static_cast<type>(y)); } -struct infinite -{ - template <typename T> - CMT_INLINE constexpr operator T() const noexcept - { - return T(); - } - constexpr friend bool operator<(infinite, size_t) noexcept { return false; } - constexpr friend bool operator<(size_t, infinite) noexcept { return true; } - constexpr friend bool operator<(infinite, infinite) noexcept { return false; } -}; - enum class accuracy : int { accuracy = 1, diff --git a/include/kfr/base/univector.hpp b/include/kfr/base/univector.hpp @@ -176,7 +176,6 @@ protected: } private: - constexpr infinite size() const noexcept = delete; CMT_INLINE size_t get_size() const { return derived_cast<Class>(this)->size(); } CMT_INLINE const T* get_data() const { return derived_cast<Class>(this)->data(); } CMT_INLINE T* get_data() { return derived_cast<Class>(this)->data(); }