Workaround for GCC 2.95.3

[SVN r32302]
This commit is contained in:
Douglas Gregor
2006-01-13 02:45:33 +00:00
parent 1f51812589
commit 2b4f81ca67

View File

@ -315,8 +315,10 @@ namespace boost {
# endif // BOOST_NO_STD_ALLOCATOR # endif // BOOST_NO_STD_ALLOCATOR
if (op == clone_functor_tag) { if (op == clone_functor_tag) {
// GCC 2.95.3 gets the CV qualifiers wrong here, so we
// can't do the static_cast that we should do.
const functor_type* f = const functor_type* f =
static_cast<const functor_type*>(in_buffer.obj_ptr); (const functor_type*)(in_buffer.obj_ptr);
// Clone the functor // Clone the functor
# ifndef BOOST_NO_STD_ALLOCATOR # ifndef BOOST_NO_STD_ALLOCATOR