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