/* */ #ifndef D_STRING_FORMAT_H #define D_STRING_FORMAT_H #include "common.h" #include #include #include namespace aria2 { class StringFormat { private: std::string msg_; public: StringFormat(const char* fmt, ...) __attribute__ ((format (printf, 2, 3))); const std::string& str() const; }; std::ostream& operator<<(std::ostream& o, const StringFormat& fmt); } // namespace aria2 #endif // D_STRING_FORMAT_H