diff --git a/include/boost/assert/source_location.hpp b/include/boost/assert/source_location.hpp index fdf943e..162d788 100644 --- a/include/boost/assert/source_location.hpp +++ b/include/boost/assert/source_location.hpp @@ -12,6 +12,7 @@ #include #include #include +#include namespace boost { @@ -71,12 +72,12 @@ public: char buffer[ 16 ]; - sprintf( buffer, ":%ld", static_cast( line() ) ); + std::sprintf( buffer, ":%ld", static_cast( line() ) ); r += buffer; if( column() ) { - sprintf( buffer, ":%ld", static_cast( column() ) ); + std::sprintf( buffer, ":%ld", static_cast( column() ) ); r += buffer; }