From 5de06a5f2e7ad10617f1b44d25de18a37a097b1b Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 29 Oct 2020 22:40:30 +0100 Subject: [PATCH] Move declarations. --- include/xbt/string.hpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/xbt/string.hpp b/include/xbt/string.hpp index 99520e616d..bd174b8044 100644 --- a/include/xbt/string.hpp +++ b/include/xbt/string.hpp @@ -27,6 +27,18 @@ namespace simgrid { namespace xbt { +/** Create a C++ string from a C-style format + * + * @ingroup XBT_str + */ +XBT_PUBLIC std::string string_printf(const char* fmt, ...); + +/** Create a C++ string from a C-style format + * + * @ingroup XBT_str + */ +XBT_PUBLIC std::string string_vprintf(const char* fmt, va_list ap); + #if SIMGRID_HAVE_MC /** POD structure representation of a string @@ -292,18 +304,6 @@ bool operator>=(std::string const& a, string const& b) typedef std::string string; #endif - -/** Create a C++ string from a C-style format - * - * @ingroup XBT_str -*/ -XBT_PUBLIC std::string string_printf(const char* fmt, ...); - -/** Create a C++ string from a C-style format - * - * @ingroup XBT_str -*/ -XBT_PUBLIC std::string string_vprintf(const char* fmt, va_list ap); } } -- 2.20.1