Document the API using breathe.

This commit is contained in:
Victor Zverovich
2013-01-03 08:57:34 -08:00
parent 251e8774b0
commit 00830b99b3
6 changed files with 59 additions and 1280 deletions

View File

@@ -995,8 +995,8 @@ TEST(TempFormatterTest, ActionNotCalledOnError) {
TEST(TempFormatterTest, ArgLifetime) {
// The following code is for testing purposes only. It is a definite abuse
// of the API and shouldn't be used in real applications.
const fmt::TempFormatter<fmt::Ignore> &af = fmt::Format("{0}");
const_cast<fmt::TempFormatter<fmt::Ignore>&>(af) << std::string("test");
const fmt::TempFormatter<> &af = fmt::Format("{0}");
const_cast<fmt::TempFormatter<>&>(af) << std::string("test");
// String object passed as an argument to TempFormatter has
// been destroyed, but ArgInserter dtor hasn't been called yet.
// But that's OK since the Arg's dtor takes care of this and