From f4d8ea0fa76174843adf7f77ebad0ad17d2377ed Mon Sep 17 00:00:00 2001 From: Mehmet Samet Duman Date: Sun, 29 Mar 2026 15:01:23 +0300 Subject: NOISSUE fix declarations Signed-off-by: Mehmet Samet Duman --- include/tag_primitive.h | 14 +++++++------- src/tag.cpp | 8 ++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/include/tag_primitive.h b/include/tag_primitive.h index 938ec51087..a2da0cfab9 100644 --- a/include/tag_primitive.h +++ b/include/tag_primitive.h @@ -83,13 +83,13 @@ typedef tag_primitive tag_long; typedef tag_primitive tag_float; typedef tag_primitive tag_double; -//Explicit instantiations -template class NBT_EXPORT tag_primitive; -template class NBT_EXPORT tag_primitive; -template class NBT_EXPORT tag_primitive; -template class NBT_EXPORT tag_primitive; -template class NBT_EXPORT tag_primitive; -template class NBT_EXPORT tag_primitive; +//Explicit instantiation declarations +extern template class NBT_EXPORT tag_primitive; +extern template class NBT_EXPORT tag_primitive; +extern template class NBT_EXPORT tag_primitive; +extern template class NBT_EXPORT tag_primitive; +extern template class NBT_EXPORT tag_primitive; +extern template class NBT_EXPORT tag_primitive; template void tag_primitive::read_payload(io::stream_reader& reader) diff --git a/src/tag.cpp b/src/tag.cpp index 6175a36293..0446dfd3f8 100644 --- a/src/tag.cpp +++ b/src/tag.cpp @@ -32,6 +32,14 @@ namespace nbt { +//Explicit instantiation definitions for tag_primitive +template class tag_primitive; +template class tag_primitive; +template class tag_primitive; +template class tag_primitive; +template class tag_primitive; +template class tag_primitive; + static_assert(std::numeric_limits::is_iec559 && std::numeric_limits::is_iec559, "The floating point values for NBT must conform to IEC 559/IEEE 754"); -- cgit 0.0.5-2-1-g0f52