Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add attribute(printf) to xbt::string_printf.
[simgrid.git] / include / xbt / string.hpp
index a8bd317..2c46f9b 100644 (file)
@@ -31,7 +31,7 @@ namespace xbt {
  *
  * @ingroup XBT_str
  */
-XBT_PUBLIC std::string string_printf(const char* fmt, ...);
+XBT_PUBLIC std::string string_printf(const char* fmt, ...) XBT_ATTRIB_PRINTF(1, 2);
 
 /** Create a C++ string from a C-style format
  *