Fixed VC6.sp5 support, added support for mixed static/dynamic linking with VC6

[SVN r9744]
This commit is contained in:
John Maddock
2001-04-09 11:19:12 +00:00
parent 42ba37691e
commit dcb64d5db7
3 changed files with 11 additions and 6 deletions

View File

@ -51,14 +51,14 @@ struct kmp_info
};
template <class charT, class Allocator>
void kmp_free(kmp_info<charT>* pinfo, Allocator a)
void kmp_free(kmp_info<charT>* pinfo, const Allocator& a)
{
typedef BOOST_RE_MAYBE_TYPENAME REBIND_TYPE(char, Allocator) atype;
atype(a).deallocate((char*)pinfo, pinfo->size);
}
template <class iterator, class charT, class Trans, class Allocator>
kmp_info<charT>* kmp_compile(iterator first, iterator last, charT, Trans translate, Allocator a)
kmp_info<charT>* kmp_compile(iterator first, iterator last, charT, Trans translate, const Allocator& a)
{
typedef BOOST_RE_MAYBE_TYPENAME REBIND_TYPE(char, Allocator) atype;
int i, j, m;