bug - function.hpp missing include guard - see sourceforge patch

Dear Boost Developers, I've submitted a patch to your sourceforge patch section - item # 966723. The patch is also attached to this mail. Summary: function.hpp missing include guard patch function.hpp does not have an #ifndef/#endif include guard. This patch adds #ifndef BOOST_FUNCTION_HPP at the top of the file and #endif at the bottom. Thanks, Nicolas Desjardins Software Developer Orthosoft Inc. *** function.hpp.original 2004-06-04 13:54:25.000000000 -0400 --- function.hpp 2004-06-04 13:53:54.000000000 -0400 *************** *** 10,15 **** --- 10,16 ---- // William Kempf, Jesse Jones and Karl Nelson were all very helpful in the // design of this library. + #ifndef BOOST_FUNCTION_HPP #include <boost/preprocessor/iterate.hpp> #include <boost/detail/workaround.hpp> *************** *** 62,64 **** --- 63,67 ---- # include BOOST_PP_ITERATE() # undef BOOST_PP_ITERATION_PARAMS_1 #endif + + #endif // BOOST_FUNCTION_HPP

On Fri, 4 Jun 2004, Nicolas Desjardins wrote:
I've submitted a patch to your sourceforge patch section - item # 966723. The patch is also attached to this mail.
Summary: function.hpp missing include guard patch function.hpp does not have an #ifndef/#endif include guard.
This patch adds #ifndef BOOST_FUNCTION_HPP at the top of the file and #endif at the bottom.
function.hpp isn't actually supposed to have include guards. The code it contains will never actually be included twice, but you can include function.hpp with BOOST_FUNCTION_MAX_ARGS set to different values to create support for greater numbers of arguments. Doug
participants (2)
-
Douglas Paul Gregor
-
Nicolas Desjardins