I have found what I think is a problem with basic_text_iprimitive/wiprimitive. When linking a windows clr dll (may happen with other configurations too), if you use both serialization and wserialization you should not be able to link because of a couple of symbols defined across two different modules (is_whitespace(char) and is_whitespace(wchar_t) in basic_text_iprimitive and basic_text_wiprimitive).
I solved the problem by changing this two files and rebuilding boost:
// basic_text_iprimitive.ipp:
template<>
bool is_whitespace(char t);
// {
// return 0 != std::isspace(t);
// }
#ifndef BOOST_NO_CWCHAR
template<>
bool is_whitespace(wchar_t t);
// {
// return 0 != std::iswspace(t);
// }
#endif
} // detail
// basic_text_iprimitive.cpp:
namespace detail {
template<class CharType>
bool is_whitespace(CharType c);
template<>
bool is_whitespace(char t)
{
return 0 != std::isspace(t);
}
#ifndef BOOST_NO_CWCHAR
template<>
bool is_whitespace(wchar_t t)
{
return 0 != std::iswspace(t);
}
#endif
} // detail
Regards.