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 51527e24de8620068e7424ced44f89893d3b6be8
parent 635669de7aae89e981231b5656db6be8e434f6bd
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date:   Thu, 14 Jul 2022 19:40:04 +0100

representation<std::shared_ptr<void>>

Diffstat:
Minclude/kfr/cometa/string.hpp | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/include/kfr/cometa/string.hpp b/include/kfr/cometa/string.hpp @@ -512,6 +512,19 @@ struct representation<std::shared_ptr<T1>> return as_string(type_name<std::shared_ptr<T1>>(), "(nullptr)"); } }; + +template <> +struct representation<std::shared_ptr<void>> +{ + using type = std::string; + static std::string get(const std::shared_ptr<void>& value) + { + if (value) + return as_string(type_name<std::shared_ptr<void>>(), "(", value.get(), ")"); + else + return as_string(type_name<std::shared_ptr<void>>(), "(nullptr)"); + } +}; } // namespace cometa CMT_PRAGMA_GNU(GCC diagnostic pop)