From 3f965312d61fac3970f1000ee6433cc154abcb6c Mon Sep 17 00:00:00 2001 From: ljfa Date: Tue, 22 Sep 2015 15:21:16 +0200 Subject: Explicitly instantiate and export templates in header and move defintions of tag_array::at to header --- src/tag_array.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src') diff --git a/src/tag_array.cpp b/src/tag_array.cpp index 3f073232d1..6173dbb1dd 100644 --- a/src/tag_array.cpp +++ b/src/tag_array.cpp @@ -25,18 +25,6 @@ namespace nbt { -template -T& tag_array::at(size_t i) -{ - return data.at(i); -} - -template -T tag_array::at(size_t i) const -{ - return data.at(i); -} - //Slightly different between byte_array and int_array //Reading template<> @@ -103,8 +91,4 @@ void tag_array::write_payload(io::stream_writer& writer) const writer.write_num(i); } -//Enforce template instantiations -template class NBT_EXPORT tag_array; -template class NBT_EXPORT tag_array; - } -- cgit 0.0.5-2-1-g0f52