diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-12-31 04:59:00 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-12-31 04:59:00 +0000 |
commit | 785160ea39400cbfd9a3fe3d4eae11ea106b8d04 (patch) | |
tree | 4bbe2c37ef7d1143d7ce8728ad89d1e2139ecf00 /libsqlitepp/sqlite-mock.cpp | |
parent | Set cxxflags specifically, not cflags (diff) | |
download | libdbpp-sqlite-785160ea39400cbfd9a3fe3d4eae11ea106b8d04.tar.bz2 libdbpp-sqlite-785160ea39400cbfd9a3fe3d4eae11ea106b8d04.tar.xz libdbpp-sqlite-785160ea39400cbfd9a3fe3d4eae11ea106b8d04.zip |
Do lots more work with compile time formatter instead runtime formatters
Diffstat (limited to 'libsqlitepp/sqlite-mock.cpp')
-rw-r--r-- | libsqlitepp/sqlite-mock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsqlitepp/sqlite-mock.cpp b/libsqlitepp/sqlite-mock.cpp index 2f0958d..bcacbde 100644 --- a/libsqlitepp/sqlite-mock.cpp +++ b/libsqlitepp/sqlite-mock.cpp @@ -1,13 +1,13 @@ #include "sqlite-mock.h" #include "sqlite-connection.h" -#include <buffer.h> +#include <boost/lexical_cast.hpp> #include <boost/filesystem/operations.hpp> namespace SQLite { Mock::Mock(const std::string & name, const std::vector<boost::filesystem::path> & ss) : MockDatabase(name), - testDbPath(boost::filesystem::path("/tmp") / "sqliteut" / stringbf("%d", getpid()) / stringbf("%d", ++DB::MockDatabase::mocked)) + testDbPath(boost::filesystem::path("/tmp") / "sqliteut" / boost::lexical_cast<std::string>(getpid()) / boost::lexical_cast<std::string>(++DB::MockDatabase::mocked)) { CreateNewDatabase(); PlaySchemaScripts(ss); |