From b29fcd4f89d8c70d97454f0e4908f35195e4bddc Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 28 Dec 2014 20:43:02 -0800 Subject: [PATCH] Add some extern template declarations for stuff with vtables --- libaegisub/common/format.cpp | 5 +++++ libaegisub/include/libaegisub/format.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/libaegisub/common/format.cpp b/libaegisub/common/format.cpp index 74cb4a6bf..829baa782 100644 --- a/libaegisub/common/format.cpp +++ b/libaegisub/common/format.cpp @@ -27,6 +27,11 @@ #define WCHAR_T_ENC "utf-32le" #endif +template class boost::interprocess::basic_vectorstream; +template class boost::interprocess::basic_vectorstream; +template class boost::interprocess::basic_vectorbuf; +template class boost::interprocess::basic_vectorbuf; + namespace { template int actual_len(int max_len, const Char *value) { diff --git a/libaegisub/include/libaegisub/format.h b/libaegisub/include/libaegisub/format.h index 790ba861a..b1ca50478 100644 --- a/libaegisub/include/libaegisub/format.h +++ b/libaegisub/include/libaegisub/format.h @@ -22,6 +22,11 @@ class wxString; +extern template class boost::interprocess::basic_vectorstream; +extern template class boost::interprocess::basic_vectorstream; +extern template class boost::interprocess::basic_vectorbuf; +extern template class boost::interprocess::basic_vectorbuf; + namespace agi { namespace format_detail { // A static cast which throws at runtime if the cast is invalid rather than // failing to compile, as with format strings we don't know what type to cast