Add some extern template declarations for stuff with vtables

This commit is contained in:
Thomas Goyne 2014-12-28 20:43:02 -08:00
parent 0e1c566628
commit b29fcd4f89
2 changed files with 10 additions and 0 deletions

View file

@ -27,6 +27,11 @@
#define WCHAR_T_ENC "utf-32le"
#endif
template class boost::interprocess::basic_vectorstream<std::string>;
template class boost::interprocess::basic_vectorstream<std::wstring>;
template class boost::interprocess::basic_vectorbuf<std::string>;
template class boost::interprocess::basic_vectorbuf<std::wstring>;
namespace {
template<typename Char>
int actual_len(int max_len, const Char *value) {

View file

@ -22,6 +22,11 @@
class wxString;
extern template class boost::interprocess::basic_vectorstream<std::string>;
extern template class boost::interprocess::basic_vectorstream<std::wstring>;
extern template class boost::interprocess::basic_vectorbuf<std::string>;
extern template class boost::interprocess::basic_vectorbuf<std::wstring>;
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