Ticket #5281: rapidxml.patch
File rapidxml.patch, 1.1 KB (added by , 12 years ago) |
---|
-
boost/property_tree/detail/rapidxml.hpp
16 16 #include <cstdlib> // For std::size_t 17 17 #include <new> // For placement new 18 18 19 #include <boost/config.hpp> // For BOOST_DEDUCED_TYPENAME 20 #include <boost/mpl/identity.hpp> 21 19 22 // On MSVC, disable "conditional expression is constant" warning (level 4). 20 23 // This warning is almost impossible to avoid with certain types of templated code 21 24 #ifdef _MSC_VER … … 369 372 public: 370 373 371 374 //! \cond internal 372 typedef void *(alloc_func)(std::size_t); // Type of user-defined function used to allocate memory 375 typedef BOOST_DEDUCED_TYPENAME mpl::identity<void *>::type (alloc_func)(std::size_t); 376 // Type of user-defined function used to allocate memory 373 377 typedef void (free_func)(void *); // Type of user-defined function used to free memory 374 378 //! \endcond 375 379