[utility] fixes for assert_test and current_function_test

Again, BOOST_NO_STDC_NAMESPACE-related trivial fixes, which make the two tests pass for intel-win32-7.1-vc6, msvc and msvc-stlport (for the two latter, current_function_test passes but produces no useful result, as there's no __func__ macro or similar available for these platforms. Anyone sees a problem with these fixes? Thanks PS: I could just go commit these trivialities without consulting, but I'd rather leave a trace at the mailing list just in case some problem arises. Sorry for the noise caused. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo 53a54
#include <boost/config.hpp> 60c61,65 < std::printf("Expression: %s\nFunction: %s\nFile: %s\nLine: %ld\n\n", expr, function, file, line);
#if !defined(BOOST_NO_STDC_NAMESPACE) using std::printf; #endif
printf("Expression: %s\nFunction: %s\nFile: %s\nLine: %ld\n\n", expr, function, file, line);
20a21
#include <boost/config.hpp> 25c26,30 < std::printf("%s(%ld): %s in function '%s'\n", file, line, msg, func);
#if !defined(BOOST_NO_STDC_NAMESPACE) using std::printf; #endif
printf("%s(%ld): %s in function '%s'\n", file, line, msg, func);

Joaquín Mª López Muñoz writes:
Again, BOOST_NO_STDC_NAMESPACE-related trivial fixes, which make the two tests pass for intel-win32-7.1-vc6, msvc and msvc-stlport (for the two latter, current_function_test passes but produces no useful result, as there's no __func__ macro or similar available for these platforms.
Anyone sees a problem with these fixes?
Nope, please go ahead, and thanks! -- Aleksey Gurtovoy MetaCommunications Engineering
participants (2)
-
Aleksey Gurtovoy
-
Joaquín Mª López Muñoz