Commit 5fdcbac8 authored by mloskot's avatar mloskot

Reviewed all header files and added missing std C/C++ headers or std:: namespace prefix.

parent bfb72e10
......@@ -5,6 +5,7 @@
// http://www.boost.org/LICENSE_1_0.txt)
//
#include <soci-platform.h>
#include "soci-sqlite3.h"
#include "rowid.h"
#include "common.h"
......@@ -14,11 +15,6 @@
#include <ctime>
#include <string>
#ifdef _MSC_VER
#pragma warning(disable:4355)
#define strtoll(s, p, b) static_cast<long long>(_strtoi64(s, p, b))
#endif
using namespace soci;
using namespace soci::details;
using namespace soci::details::sqlite3;
......
......@@ -5,7 +5,7 @@
// http://www.boost.org/LICENSE_1_0.txt)
//
#include <soci-platform.h>
#include "soci-sqlite3.h"
#include "common.h"
// std
......@@ -15,12 +15,6 @@
#include <string>
#include <vector>
#ifdef _MSC_VER
#pragma warning(disable:4355)
#define strtoll(s, p, b) static_cast<long long>(_strtoi64(s, p, b))
#endif
using namespace soci;
using namespace soci::details;
using namespace soci::details::sqlite3;
......
......@@ -9,6 +9,7 @@
#define SOCI_BACKEND_LOADER_H_INCLUDED
#include "soci-backend.h"
// std
#include <string>
#include <vector>
......
......@@ -11,6 +11,8 @@
#include "blob.h"
#include "into-type.h"
#include "use-type.h"
// std
#include <string>
namespace soci
{
......
......@@ -9,7 +9,7 @@
#define SOCI_BLOB_H_INCLUDED
#include "soci-config.h"
// std
#include <cstddef>
namespace soci
......
......@@ -10,7 +10,7 @@
#include "values.h"
#include "type-conversion-traits.h"
// boost
#include <boost/fusion/container/vector.hpp>
#include <boost/fusion/sequence/intrinsic/at.hpp>
#include <boost/fusion/include/at.hpp>
......
......@@ -9,9 +9,10 @@
#define SOCI_BOOST_GREGORIAN_DATE_H_INCLUDED
#include "type-conversion-traits.h"
// boost
#include <boost/date_time/gregorian/gregorian_types.hpp>
#include <boost/date_time/gregorian/conversion.hpp>
// std
#include <ctime>
namespace soci
......
......@@ -9,7 +9,7 @@
#define SOCI_BOOST_OPTIONAL_H_INCLUDED
#include "type-conversion-traits.h"
// boost
#include <boost/optional.hpp>
namespace soci
......
......@@ -10,7 +10,7 @@
#include "values.h"
#include "type-conversion-traits.h"
// boost
#include <boost/tuple/tuple.hpp>
namespace soci
......
......@@ -9,6 +9,7 @@
#define SOCI_CONNECTION_POOL_H_INCLUDED
#include "soci-config.h"
// std
#include <cstddef>
namespace soci
......
......@@ -9,7 +9,7 @@
#define SOCI_ERROR_H_INCLUDED
#include "soci-config.h"
// std
#include <stdexcept>
#include <string>
......
......@@ -10,8 +10,9 @@
#include "type-conversion-traits.h"
#include "soci-backend.h"
// std
#include <ctime>
#include <string>
#include <vector>
namespace soci
......
......@@ -11,8 +11,8 @@
#include "soci-backend.h"
#include "type-ptr.h"
#include "exchange-traits.h"
#include <string>
// std
#include <cstddef>
#include <vector>
namespace soci
......
......@@ -11,6 +11,9 @@
#include "into-type.h"
#include "exchange-traits.h"
#include "type-conversion.h"
// std
#include <cstddef>
#include <vector>
namespace soci
{
......
......@@ -9,7 +9,8 @@
#define SOCI_REF_COUNTED_PREPARE_INFO_INCLUDED
#include "ref-counted-statement.h"
// std
#include <string>
#include <vector>
namespace soci
......
......@@ -11,6 +11,8 @@
#include "statement.h"
#include "into-type.h"
#include "use-type.h"
// std
#include <sstream>
namespace soci
{
......
......@@ -12,6 +12,8 @@
#include "exchange-traits.h"
#include "row.h"
#include "statement.h"
// std
#include <cstddef>
namespace soci
{
......
......@@ -11,11 +11,11 @@
#include "type-holder.h"
#include "soci-backend.h"
#include "type-conversion.h"
// std
#include <cassert>
#include <map>
#include <string>
#include <vector>
#include <map>
namespace soci
{
......
......@@ -12,6 +12,8 @@
#include "into-type.h"
#include "use-type.h"
#include "exchange-traits.h"
// std
#include <string>
namespace soci
{
......
......@@ -9,6 +9,8 @@
#define SOCI_ROWSET_H_INCLUDED
#include "statement.h"
// std
#include <iterator>
#include <memory>
namespace soci
......
......@@ -9,7 +9,8 @@
#define SOCI_SESSION_H_INCLUDED
#include "once-temp-type.h"
// std
#include <cstddef>
#include <ostream>
#include <sstream>
#include <string>
......
......@@ -9,8 +9,8 @@
#define SOCI_BACKEND_H_INCLUDED
#include "soci-config.h"
#include "error.h"
// std
#include <cstddef>
#include <map>
#include <string>
......
......@@ -12,6 +12,7 @@
#pragma warning(disable:4251 4512 4511)
#endif
// namespace soci
#include "backend-loader.h"
#include "blob.h"
#include "blob-exchange.h"
......@@ -45,6 +46,7 @@
#include "values.h"
#include "values-exchange.h"
// namespace boost
#ifdef SOCI_USE_BOOST
#include <boost/version.hpp>
#if defined(BOOST_VERSION) && BOOST_VERSION >= 103500
......
......@@ -13,8 +13,11 @@
#include "use-type.h"
#include "soci-backend.h"
#include "row.h"
// std
#include <cstddef>
#include <string>
#include <map>
#include <vector>
namespace soci
{
......
......@@ -11,8 +11,6 @@
#include "session.h"
#include "soci-config.h"
#include <string>
namespace soci
{
......
......@@ -11,7 +11,9 @@
#include "type-conversion-traits.h"
#include "into-type.h"
#include "use-type.h"
// std
#include <cstddef>
#include <string>
#include <vector>
namespace soci
......
......@@ -7,7 +7,7 @@
#ifndef SOCI_TYPE_HOLDER_H_INCLUDED
#define SOCI_TYPE_HOLDER_H_INCLUDED
// std
#include <typeinfo>
namespace soci
......
......@@ -8,11 +8,7 @@
#ifndef SOCI_TYPE_PTR_H_INCLUDED
#define SOCI_TYPE_PTR_H_INCLUDED
namespace soci
{
namespace details
{
namespace soci { namespace details {
template <typename T>
class type_ptr
......@@ -22,14 +18,13 @@ public:
~type_ptr() { delete p_; }
T * get() const { return p_; }
void release() const { p_ = NULL; }
void release() const { p_ = 0; }
private:
mutable T * p_;
};
} // namespace details
} // namespace soci
#endif // SOCI_TYPE_PTR_H_INCLUDED
......@@ -11,15 +11,12 @@
#include "soci-backend.h"
#include "type-ptr.h"
#include "exchange-traits.h"
// std
#include <cstddef>
#include <string>
#include <vector>
namespace soci
{
namespace details
{
namespace soci { namespace details {
class statement_impl;
......
......@@ -11,6 +11,8 @@
#include "use-type.h"
#include "exchange-traits.h"
#include "type-conversion.h"
// std
#include <string>
namespace soci
{
......
......@@ -12,6 +12,9 @@
#include "into-type.h"
#include "use-type.h"
#include "row-exchange.h"
// std
#include <cstddef>
#include <string>
#include <vector>
namespace soci
......
......@@ -11,8 +11,13 @@
#include "statement.h"
#include "into-type.h"
#include "use-type.h"
// std
#include <cstddef>
#include <map>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
namespace soci
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment